summaryrefslogtreecommitdiffstats
path: root/drivers/phy/st
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/st')
-rw-r--r--drivers/phy/st/phy-stm32-usbphyc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c
index 0ab18f2078db..8ebfd567d407 100644
--- a/drivers/phy/st/phy-stm32-usbphyc.c
+++ b/drivers/phy/st/phy-stm32-usbphyc.c
@@ -326,11 +326,8 @@ static int stm32_usbphyc_probe(struct platform_device *pdev)
return PTR_ERR(usbphyc->base);
usbphyc->clk = devm_clk_get(dev, NULL);
- if (IS_ERR(usbphyc->clk)) {
- ret = PTR_ERR(usbphyc->clk);
- dev_err(dev, "clk get failed: %d\n", ret);
- return ret;
- }
+ if (IS_ERR(usbphyc->clk))
+ return dev_err_probe(dev, PTR_ERR(usbphyc->clk), "clk get_failed\n");
ret = clk_prepare_enable(usbphyc->clk);
if (ret) {