projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d605cbb
)
ASoC: fsl-asoc-card: Defer probe when fail to find codec device
author
Shengjiu Wang
<shengjiu.wang@nxp.com>
Thu, 4 Jun 2020 06:25:30 +0000
(14:25 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 4 Jun 2020 13:42:30 +0000
(14:42 +0100)
Defer probe when fail to find codec device, because the codec
device maybe probed later than machine driver.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link:
https://lore.kernel.org/r/1591251930-4111-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl-asoc-card.c
b/sound/soc/fsl/fsl-asoc-card.c
index cf4feb835743db88d1c6696f12d630e6c3ffeeb0..00be73900888449a6c8139cbd762195507dee44e 100644
(file)
--- a/
sound/soc/fsl/fsl-asoc-card.c
+++ b/
sound/soc/fsl/fsl-asoc-card.c
@@
-581,7
+581,7
@@
static int fsl_asoc_card_probe(struct platform_device *pdev)
if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
dev_err(&pdev->dev, "failed to find codec device\n");
- ret = -E
INVAL
;
+ ret = -E
PROBE_DEFER
;
goto asrc_fail;
}