summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorRichard Zhu <hongxing.zhu@nxp.com>2022-12-19 08:12:21 +0100
committerVinod Koul <vkoul@kernel.org>2023-01-13 18:55:38 +0100
commitb574baa64cf84e7793fe79f4491ae36c16e65a0b (patch)
tree2ae0854e9f2cb3218fc71df789d579b384a3a201 /drivers/phy
parentphy: Revert "phy: qualcomm: usb28nm: Add MDM9607 init sequence" (diff)
downloadlinux-b574baa64cf84e7793fe79f4491ae36c16e65a0b.tar.xz
linux-b574baa64cf84e7793fe79f4491ae36c16e65a0b.zip
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: dce9edff16ee ("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>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/freescale/phy-fsl-imx8m-pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8m-pcie.c b/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
index 7585e8080b77..afc63552ecaf 100644
--- a/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
+++ b/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
@@ -255,7 +255,7 @@ static int imx8_pcie_phy_probe(struct platform_device *pdev)
imx8_phy->perst =
devm_reset_control_get_exclusive(dev, "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");
}