Commit 4c6b2abf authored by Yang Yingliang's avatar Yang Yingliang Committed by Stephen Boyd

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220913032403.1007902-1-yangyingliang@huawei.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 1ea1543f
...@@ -96,9 +96,9 @@ static int __clk_bulk_get(struct device *dev, int num_clks, ...@@ -96,9 +96,9 @@ static int __clk_bulk_get(struct device *dev, int num_clks,
if (ret == -ENOENT && optional) if (ret == -ENOENT && optional)
continue; continue;
if (ret != -EPROBE_DEFER) dev_err_probe(dev, ret,
dev_err(dev, "Failed to get clk '%s': %d\n", "Failed to get clk '%s'\n",
clks[i].id, ret); clks[i].id);
goto err; goto err;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment