diff options
author | Richard Zhu <hongxing.zhu@nxp.com> | 2022-12-19 10:12:21 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-01-13 20:55:38 +0300 |
commit | b574baa64cf84e7793fe79f4491ae36c16e65a0b (patch) | |
tree | 2ae0854e9f2cb3218fc71df789d579b384a3a201 /drivers/phy/freescale | |
parent | d60c471a8670635b65b3d67b6e7aaa263d191cc3 (diff) | |
download | linux-b574baa64cf84e7793fe79f4491ae36c16e65a0b.tar.xz |
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/freescale')
-rw-r--r-- | drivers/phy/freescale/phy-fsl-imx8m-pcie.c | 2 |
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"); } |