diff options
-rw-r--r-- | sound/soc/generic/simple-card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 0430be85f23c..6c61b1758f78 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -213,8 +213,8 @@ static int asoc_simple_card_probe(struct platform_device *pdev) | |||
213 | } | 213 | } |
214 | } | 214 | } |
215 | } else { | 215 | } else { |
216 | cinfo->snd_card.dev = &pdev->dev; | ||
217 | cinfo = pdev->dev.platform_data; | 216 | cinfo = pdev->dev.platform_data; |
217 | cinfo->snd_card.dev = &pdev->dev; | ||
218 | } | 218 | } |
219 | 219 | ||
220 | if (!cinfo) { | 220 | if (!cinfo) { |