projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d414c14
)
phy: omap-usb2-phy: Use dev_err_probe()
author
Ye Xingchen
<ye.xingchen@zte.com.cn>
Thu, 23 Mar 2023 07:45:52 +0000
(15:45 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 31 Mar 2023 13:50:19 +0000
(19:20 +0530)
Replace the open-code with dev_err_probe() to simplify the code.
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link:
https://lore.kernel.org/r/202303231545522162256@zte.com.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-omap-usb2.c
patch
|
blob
|
history
diff --git
a/drivers/phy/ti/phy-omap-usb2.c
b/drivers/phy/ti/phy-omap-usb2.c
index bbe5d25b03513d208c9c772fc66bf8b5eb35ed20..762d3de8b3c530ed5c1c402ae170e27dd841d9a7 100644
(file)
--- a/
drivers/phy/ti/phy-omap-usb2.c
+++ b/
drivers/phy/ti/phy-omap-usb2.c
@@
-445,11
+445,9
@@
static int omap_usb2_probe(struct platform_device *pdev)
PTR_ERR(phy->wkupclk));
phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k");
- if (IS_ERR(phy->wkupclk)) {
- if (PTR_ERR(phy->wkupclk) != -EPROBE_DEFER)
- dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n");
- return PTR_ERR(phy->wkupclk);
- }
+ if (IS_ERR(phy->wkupclk))
+ return dev_err_probe(&pdev->dev, PTR_ERR(phy->wkupclk),
+ "unable to get usb_phy_cm_clk32k\n");
dev_warn(&pdev->dev,
"found usb_phy_cm_clk32k, please fix DTS\n");