* [PATCH -next] clk: bulk: Use dev_err_probe() helper in __clk_bulk_get()
@ 2022-09-13 3:24 Yang Yingliang
2022-10-17 23:07 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2022-09-13 3:24 UTC (permalink / raw)
To: linux-kernel, linux-clk; +Cc: mturquette, sboyd
dev_err() can be replace with dev_err_probe() which will check if error
code is -EPROBE_DEFER.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
drivers/clk/clk-bulk.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/clk-bulk.c b/drivers/clk/clk-bulk.c
index e9e16425c739..826b3ff99433 100644
--- a/drivers/clk/clk-bulk.c
+++ b/drivers/clk/clk-bulk.c
@@ -96,9 +96,9 @@ static int __clk_bulk_get(struct device *dev, int num_clks,
if (ret == -ENOENT && optional)
continue;
- if (ret != -EPROBE_DEFER)
- dev_err(dev, "Failed to get clk '%s': %d\n",
- clks[i].id, ret);
+ dev_err_probe(dev, ret,
+ "Failed to get clk '%s'\n",
+ clks[i].id);
goto err;
}
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] clk: bulk: Use dev_err_probe() helper in __clk_bulk_get()
2022-09-13 3:24 [PATCH -next] clk: bulk: Use dev_err_probe() helper in __clk_bulk_get() Yang Yingliang
@ 2022-10-17 23:07 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2022-10-17 23:07 UTC (permalink / raw)
To: Yang Yingliang, linux-clk, linux-kernel; +Cc: mturquette
Quoting Yang Yingliang (2022-09-12 20:24:03)
> dev_err() can be replace with dev_err_probe() which will check if error
> code is -EPROBE_DEFER.
>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-17 23:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13 3:24 [PATCH -next] clk: bulk: Use dev_err_probe() helper in __clk_bulk_get() Yang Yingliang
2022-10-17 23:07 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox