[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200228100038.27748-2-m.szyprowski@samsung.com>
Date: Fri, 28 Feb 2020 11:00:38 +0100
From: Marek Szyprowski <m.szyprowski@...sung.com>
To: patches@...nsource.cirrus.com, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Cc: Marek Szyprowski <m.szyprowski@...sung.com>,
Mark Brown <broonie@...nel.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Lee Jones <lee.jones@...aro.org>,
Charles Keepax <ckeepax@...nsource.cirrus.com>,
Liam Girdwood <lgirdwood@...il.com>
Subject: [PATCH 2/2] ASoC: wm8994: Silence warnings during deferred probe
Don't confuse user with meaningless warning about the failure in getting
clocks in case of deferred probe.
Signed-off-by: Marek Szyprowski <m.szyprowski@...sung.com>
---
sound/soc/codecs/wm8994.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 15ce64a48a87..b4d8da8eb479 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -4601,7 +4601,8 @@ static int wm8994_probe(struct platform_device *pdev)
ret = devm_clk_bulk_get_optional(pdev->dev.parent, ARRAY_SIZE(wm8994->mclk),
wm8994->mclk);
if (ret < 0) {
- dev_err(&pdev->dev, "Failed to get clocks: %d\n", ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "Failed to get clocks: %d\n", ret);
return ret;
}
--
2.17.1
Powered by blists - more mailing lists