sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing
PATCH RESEND 1/1 sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing
Don't complain on -EPROBE_DEFER when when initializing, the driver probe will be retried later.
Signed-off-by Ladislav Michl <[email protected]>
---
Note: Just a resend of patch from 9 Nov 2016 as there were no
reply by then.
sound/soc/omap/omap-twl4030.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/soc/omap/omap-twl4030.c +4 -2
@@ -322,8 +322,10 @@ static int omap_twl4030_probe(struct platform_device *pdev)snd_soc_card_set_drvdata (card, priv); ret =devm_snd_soc_register_card (&pdev->dev, card);if (ret) { -dev_err (&pdev->dev,"devm_snd_soc_register_card() failed: %d\n" , - ret); +if (ret != -EPROBE_DEFER ) +dev_err (&pdev->dev, +"devm_snd_soc_register_card() failed: %d\n" , + ret);return ret; }
Signature · 1 line
2.15.1
Hi
Quoted 17 lines · Ladislav Michl
Don't complain on -EPROBE_DEFER when when initializing, the driver probe will be retried later.
Signed-off-by Ladislav Michl <[email protected]>---
Note: Just a resend of patch from 9 Nov 2016 as there were no
reply by then.sound/soc/omap/omap-twl4030.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)sound/soc/omap/omap-twl4030.c +0
-0@@ -322,8 +322,10 @@ static int omap_twl4030_probe(struct platform_device *pdev)snd_soc_card_set_drvdata (card, priv);
sound/soc/omap/omap-twl4030.c static int omap_twl4030_probe(struct platform_device *pdev) · line 330
Quoted 10 lines
sound/soc/omap/omap-twl4030.c +4
-2ret =devm_snd_soc_register_card (&pdev->dev, card);if (ret) { -dev_err (&pdev->dev,"devm_snd_soc_register_card() failed: %d\n" , - ret); +if (ret != -EPROBE_DEFER ) +dev_err (&pdev->dev, +"devm_snd_soc_register_card() failed: %d\n" , + ret);return ret; }
Sorry the delay. Please Cc Mark Brown <[email protected]> and repost. You may add my
Acked-by Jarkko Nikula <[email protected]>