projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c0b823
)
ASoC: simple-card: fix a bug where cinfo will be NULL before using it
author
Xiubo Li
<Li.Xiubo@freescale.com>
Thu, 9 Jan 2014 09:19:08 +0000
(17:19 +0800)
committer
Mark Brown
<broonie@linaro.org>
Thu, 9 Jan 2014 17:35:46 +0000
(17:35 +0000)
If the dt is not used, the cinfo will be always NULL before using it.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/generic/simple-card.c
patch
|
blob
|
history
diff --git
a/sound/soc/generic/simple-card.c
b/sound/soc/generic/simple-card.c
index
0430be8
..
6c61b17
100644
(file)
--- 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)
}
}
} else {
- cinfo->snd_card.dev = &pdev->dev;
cinfo = pdev->dev.platform_data;
+ cinfo->snd_card.dev = &pdev->dev;
}
if (!cinfo) {