Skip to contentSkip to conversation

phy: starfive: fix error code in probe

PATCH Applied Dan Carpenter 2 participants 2 messages Jul 18, 2023 – Jul 24, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: starfive: fix error code in probe

This is using the wrong pointer, "phy->regs" vs "phy->phy".

Fixes 26cea0e28057 ("phy: starfive: Add JH7110 PCIE 2.0 PHY driver")
---
 drivers/phy/starfive/phy-jh7110-pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/starfive/phy-jh7110-pcie.c +1 -1
index cbe79c1f59d3..734c8e007727 100644
@@ -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 =
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Dan Carpenter

This is using the wrong pointer, "phy->regs" vs "phy->phy".

Applied, thanks!

[1/1] phy: starfive: fix error code in probe

      commit: 86fe3e9f4c635cf740b31161ee35aed4a78e03f9

Best regards,

Signature · 8 lines
~Vinod



-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy