projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: simple-card: fix a bug where cinfo will be NULL before using it
[firefly-linux-kernel-4.4.55.git]
/
sound
/
soc
/
generic
/
simple-card.c
diff --git
a/sound/soc/generic/simple-card.c
b/sound/soc/generic/simple-card.c
index 0430be85f23c966ef1441a557b584eb6dd6580f8..6c61b1758f7804f95d97f7e0ff1677102ffec169 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) {