We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad2175c commit c469b23Copy full SHA for c469b23
drivers/net/phy/smsc.c
@@ -284,7 +284,8 @@ static int smsc_phy_probe(struct phy_device *phydev)
284
/* Make clk optional to keep DTB backward compatibility. */
285
priv->refclk = clk_get_optional(dev, NULL);
286
if (IS_ERR(priv->refclk))
287
- dev_err_probe(dev, PTR_ERR(priv->refclk), "Failed to request clock\n");
+ return dev_err_probe(dev, PTR_ERR(priv->refclk),
288
+ "Failed to request clock\n");
289
290
ret = clk_prepare_enable(priv->refclk);
291
if (ret)
0 commit comments