Skip to content

Commit b574baa

Browse files
Richard Zhuvinodkoul
authored andcommitted
phy: freescale: imx8m-pcie: Add one missing error return
There should be one error return when fail to fetch the perst reset. Add the missing error return. Fixes: dce9edf ("phy: freescale: imx8m-pcie: Add i.MX8MP PCIe PHY support") Signed-off-by: Richard Zhu <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent d60c471 commit b574baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/freescale/phy-fsl-imx8m-pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int imx8_pcie_phy_probe(struct platform_device *pdev)
255255
imx8_phy->perst =
256256
devm_reset_control_get_exclusive(dev, "perst");
257257
if (IS_ERR(imx8_phy->perst))
258-
dev_err_probe(dev, PTR_ERR(imx8_phy->perst),
258+
return dev_err_probe(dev, PTR_ERR(imx8_phy->perst),
259259
"Failed to get PCIE PHY PERST control\n");
260260
}
261261

0 commit comments

Comments
 (0)