diff mbox series

[13/20] clocksource/drivers: Do not warn on probe defer

Message ID 20190826204407.17759-13-daniel.lezcano@linaro.org
State Accepted
Commit 14e019df1e64c8b19ce8e0b3da25b6f40c8716be
Headers show
Series [01/20] clocksource: Remove dev_err() usage after platform_get_irq() | expand

Commit Message

Daniel Lezcano Aug. 26, 2019, 8:44 p.m. UTC
From: Jon Hunter <jonathanh@nvidia.com>


Deferred probe is an expected return value on many platforms and so
there's no need to output a warning that may potentially confuse users.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

---
 drivers/clocksource/timer-probe.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/drivers/clocksource/timer-probe.c b/drivers/clocksource/timer-probe.c
index dda1946e84dd..ee9574da53c0 100644
--- a/drivers/clocksource/timer-probe.c
+++ b/drivers/clocksource/timer-probe.c
@@ -29,7 +29,9 @@  void __init timer_probe(void)
 
 		ret = init_func_ret(np);
 		if (ret) {
-			pr_err("Failed to initialize '%pOF': %d\n", np, ret);
+			if (ret != -EPROBE_DEFER)
+				pr_err("Failed to initialize '%pOF': %d\n", np,
+				       ret);
 			continue;
 		}