Skip to content

Commit

Permalink
phy: freescale: imx8m-pcie: Add one missing error return
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
Richard Zhu authored and Greg Kroah-Hartman committed May 2, 2025
1 parent fc053d2 commit c8cbb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/phy/freescale/phy-fsl-imx8m-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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");
}

Expand Down

0 comments on commit c8cbb61

Please sign in to comment.