projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d60c471
)
phy: freescale: imx8m-pcie: Add one missing error return
author
Richard Zhu
<hongxing.zhu@nxp.com>
Mon, 19 Dec 2022 07:12:21 +0000
(15:12 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 13 Jan 2023 17:55:38 +0000
(23:25 +0530)
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>
drivers/phy/freescale/phy-fsl-imx8m-pcie.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
b/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
index 7585e8080b77d58247aa94f5020f2aa98bcc9c30..afc63552ecaf7994738f9cfad53ef852fde9aa3b 100644
(file)
--- 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");
}