[alsa-devel] [PATCH v2] sound: omap-twl4030: do not complain on -EPROBE_DEFER when initializing

Ladislav Michl ladis at linux-mips.org
Sun Feb 11 22:25:22 CET 2018


Don't complain on -EPROBE_DEFER when initializing, the driver probe
will be retried later.

Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
Acked-by: Jarkko Nikula <jarkko.nikula at bitmer.com>
---
 Changes:
 -v2: fixed typo in commit log, added Jarkko Nikula's ack

 sound/soc/omap/omap-twl4030.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
index cccc316743fa..7c1f71884768 100644
--- a/sound/soc/omap/omap-twl4030.c
+++ b/sound/soc/omap/omap-twl4030.c
@@ -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;
 	}
 
-- 
2.16.1



More information about the Alsa-devel mailing list