Skip to content
Snippets Groups Projects
Commit b574baa6 authored by Richard Zhu's avatar Richard Zhu Committed by Vinod Koul
Browse files

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: dce9edff ("phy: freescale: imx8m-pcie: Add i.MX8MP PCIe PHY support")

Signed-off-by: default avatarRichard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/1671433941-2037-1-git-send-email-hongxing.zhu@nxp.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent d60c471a
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ static int imx8_pcie_phy_probe(struct platform_device *pdev) ...@@ -255,7 +255,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");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment