* [PATCH] sound: omap-twl4030: do not complain on -EPROBE_DEFER
@ 2016-11-09 13:58 Ladislav Michl
0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2016-11-09 13:58 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, linux-omap
Do not complain on -EPROBE_DEFER when initializing, the driver probe will
be retried later.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
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 7431314..c90882c 100644
--- a/sound/soc/omap/omap-twl4030.c
+++ b/sound/soc/omap/omap-twl4030.c
@@ -335,8 +335,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.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-09 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09 13:58 [PATCH] sound: omap-twl4030: do not complain on -EPROBE_DEFER Ladislav Michl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).