mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
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>
This commit is contained in:
parent
1ea1543fed
commit
4c6b2abf07
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user