summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-07-18 10:02:49 +0300
committerVinod Koul <vkoul@kernel.org>2023-07-24 15:53:54 +0530
commit86fe3e9f4c635cf740b31161ee35aed4a78e03f9 (patch)
tree527f937f7c56c1d48ea545bfa657c9965faa8d73 /drivers/phy
parentf66782cff479807ad7e98f0cf6a0c0babfe0159b (diff)
downloadlinux-stable-86fe3e9f4c635cf740b31161ee35aed4a78e03f9.tar.gz
linux-stable-86fe3e9f4c635cf740b31161ee35aed4a78e03f9.tar.bz2
linux-stable-86fe3e9f4c635cf740b31161ee35aed4a78e03f9.zip
phy: starfive: fix error code in probe
This is using the wrong pointer, "phy->regs" vs "phy->phy". Fixes: fd097f48eea9 ("phy: starfive: Add JH7110 PCIE 2.0 PHY driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/3cc81f2a-efd7-4ef7-ae6b-e38c91efe153@moroto.mountain Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/starfive/phy-jh7110-pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/starfive/phy-jh7110-pcie.c b/drivers/phy/starfive/phy-jh7110-pcie.c
index cbe79c1f59d3..734c8e007727 100644
--- a/drivers/phy/starfive/phy-jh7110-pcie.c
+++ b/drivers/phy/starfive/phy-jh7110-pcie.c
@@ -151,7 +151,7 @@ static int jh7110_pcie_phy_probe(struct platform_device *pdev)
phy->phy = devm_phy_create(dev, NULL, &jh7110_pcie_phy_ops);
if (IS_ERR(phy->phy))
- return dev_err_probe(dev, PTR_ERR(phy->regs),
+ return dev_err_probe(dev, PTR_ERR(phy->phy),
"Failed to map phy base\n");
phy->sys_syscon =