Skip to content

Commit c8cbb61

Browse files
Richard Zhugregkh
Richard Zhu
authored andcommitted
phy: freescale: imx8m-pcie: Add one missing error return
commit b574baa upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fc053d2 commit c8cbb61

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
@@ -271,7 +271,7 @@ static int imx8_pcie_phy_probe(struct platform_device *pdev)
271271
imx8_phy->perst =
272272
devm_reset_control_get_exclusive(dev, "perst");
273273
if (IS_ERR(imx8_phy->perst))
274-
dev_err_probe(dev, PTR_ERR(imx8_phy->perst),
274+
return dev_err_probe(dev, PTR_ERR(imx8_phy->perst),
275275
"Failed to get PCIE PHY PERST control\n");
276276
}
277277

0 commit comments

Comments
 (0)