mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
phy: freescale: imx8m-pcie: Add one missing error return
commitb574baa64cupstream. There should be one error return when fail to fetch the perst reset. Add the missing error return. Fixes:dce9edff16("phy: freescale: imx8m-pcie: Add i.MX8MP PCIe PHY support") Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Marek Vasut <marex@denx.de> Link: https://lore.kernel.org/r/1671433941-2037-1-git-send-email-hongxing.zhu@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fc053d2df4
commit
c8cbb6179c
@@ -271,7 +271,7 @@ static int imx8_pcie_phy_probe(struct platform_device *pdev)
|
|||||||
imx8_phy->perst =
|
imx8_phy->perst =
|
||||||
devm_reset_control_get_exclusive(dev, "perst");
|
devm_reset_control_get_exclusive(dev, "perst");
|
||||||
if (IS_ERR(imx8_phy->perst))
|
if (IS_ERR(imx8_phy->perst))
|
||||||
dev_err_probe(dev, PTR_ERR(imx8_phy->perst),
|
return dev_err_probe(dev, PTR_ERR(imx8_phy->perst),
|
||||||
"Failed to get PCIE PHY PERST control\n");
|
"Failed to get PCIE PHY PERST control\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user