projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f92d67e
)
clk:davinci: make use of dev_err_cast_probe()
author
Yuesong Li
<liyuesong@vivo.com>
Wed, 28 Aug 2024 07:35:15 +0000
(15:35 +0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Wed, 28 Aug 2024 20:11:21 +0000
(13:11 -0700)
Using dev_err_cast_probe() to simplify the code.
Signed-off-by: Yuesong Li <liyuesong@vivo.com>
Link:
https://lore.kernel.org/r/20240828073515.950677-1-liyuesong@vivo.com
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/davinci/da8xx-cfgchip.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/davinci/da8xx-cfgchip.c
b/drivers/clk/davinci/da8xx-cfgchip.c
index f6da6674857302eb7062ce38a120a8cab9f4810e..a5109fe8b16e9b40abfb2d53b119a2667e215119 100644
(file)
--- a/
drivers/clk/davinci/da8xx-cfgchip.c
+++ b/
drivers/clk/davinci/da8xx-cfgchip.c
@@
-513,8
+513,7
@@
da8xx_cfgchip_register_usb0_clk48(struct device *dev,
fck_clk = devm_clk_get(dev, "fck");
if (IS_ERR(fck_clk)) {
- dev_err_probe(dev, PTR_ERR(fck_clk), "Missing fck clock\n");
- return ERR_CAST(fck_clk);
+ return dev_err_cast_probe(dev, fck_clk, "Missing fck clock\n");
}
usb0 = devm_kzalloc(dev, sizeof(*usb0), GFP_KERNEL);