Skip to content

Commit df7e70e

Browse files
Yuesong Libebarino
authored andcommitted
clk:davinci: make use of dev_err_cast_probe()
Using dev_err_cast_probe() to simplify the code. Signed-off-by: Yuesong Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: David Lechner <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent f92d67e commit df7e70e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/davinci/da8xx-cfgchip.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ da8xx_cfgchip_register_usb0_clk48(struct device *dev,
513513

514514
fck_clk = devm_clk_get(dev, "fck");
515515
if (IS_ERR(fck_clk)) {
516-
dev_err_probe(dev, PTR_ERR(fck_clk), "Missing fck clock\n");
517-
return ERR_CAST(fck_clk);
516+
return dev_err_cast_probe(dev, fck_clk, "Missing fck clock\n");
518517
}
519518

520519
usb0 = devm_kzalloc(dev, sizeof(*usb0), GFP_KERNEL);

0 commit comments

Comments
 (0)