diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-13 06:24:03 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-10-18 02:07:51 +0300 |
commit | 4c6b2abf074e987da9919fae8e9dad811f497be8 (patch) | |
tree | 11cc76075c383bd1460be1d8f5a8e5f0358b22e4 /drivers/clk/clk-bulk.c | |
parent | 1ea1543fed17408a285bbd736aefbd83ebf693d8 (diff) | |
download | linux-4c6b2abf074e987da9919fae8e9dad811f497be8.tar.xz |
clk: bulk: Use dev_err_probe() helper in __clk_bulk_get()
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>
Link: https://lore.kernel.org/r/20220913032403.1007902-1-yangyingliang@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-bulk.c')
-rw-r--r-- | drivers/clk/clk-bulk.c | 6 |
1 files 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; } } |