projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225bb79
)
clk: davinci: cfgchip: Use dev_err_probe() helper
author
Yang Yingliang
<yangyingliang@huawei.com>
Tue, 13 Sep 2022 03:22:28 +0000
(11:22 +0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Fri, 30 Sep 2022 20:47:21 +0000
(13:47 -0700)
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>
drivers/clk/davinci/da8xx-cfgchip.c
patch
|
blob
|
history
diff --git
a/drivers/clk/davinci/da8xx-cfgchip.c
b/drivers/clk/davinci/da8xx-cfgchip.c
index
77d1827
..
4103d60
100644
(file)
--- 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);
}