Re: [PATCH] ASoC: simple-card: fix a bug where cinfo will be NULL before using it

2014-01-09 Thread Mark Brown
On Thu, Jan 09, 2014 at 05:19:08PM +0800, Xiubo Li wrote: > } else { > - cinfo->snd_card.dev = &pdev->dev; > cinfo = pdev->dev.platform_data; > + cinfo->snd_card.dev = &pdev->dev; > } I've applied this since not crashing is good but it's a bug to

[PATCH] ASoC: simple-card: fix a bug where cinfo will be NULL before using it

2014-01-09 Thread Xiubo Li
If the dt is not used, the cinfo will be always NULL before using it. Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index c67d2db..51a4784 100644 --