diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-13 11:22:28 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-09-30 13:47:21 -0700 |
commit | 3475c885480817c9e340fb75b9f6e31b19331ba9 (patch) | |
tree | d0409b34f1515319d704bac864dada1e493b8269 | |
parent | 225bb79123ea7ecd555a4992ff41414dd9cd604e (diff) | |
download | lwn-3475c885480817c9e340fb75b9f6e31b19331ba9.tar.gz lwn-3475c885480817c9e340fb75b9f6e31b19331ba9.zip |
clk: davinci: cfgchip: Use dev_err_probe() helper
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/20220913032228.985852-1-yangyingliang@huawei.com
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/davinci/da8xx-cfgchip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c index 77d18276bfe8..4103d605e804 100644 --- a/drivers/clk/davinci/da8xx-cfgchip.c +++ b/drivers/clk/davinci/da8xx-cfgchip.c @@ -510,8 +510,7 @@ da8xx_cfgchip_register_usb0_clk48(struct device *dev, fck_clk = devm_clk_get(dev, "fck"); if (IS_ERR(fck_clk)) { - if (PTR_ERR(fck_clk) != -EPROBE_DEFER) - dev_err(dev, "Missing fck clock\n"); + dev_err_probe(dev, PTR_ERR(fck_clk), "Missing fck clock\n"); return ERR_CAST(fck_clk); } |