Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Vinod Koul
86fe3e9f f66782cf

+1 -1
+1 -1
drivers/phy/starfive/phy-jh7110-pcie.c
··· 151 151 152 152 phy->phy = devm_phy_create(dev, NULL, &jh7110_pcie_phy_ops); 153 153 if (IS_ERR(phy->phy)) 154 - return dev_err_probe(dev, PTR_ERR(phy->regs), 154 + return dev_err_probe(dev, PTR_ERR(phy->phy), 155 155 "Failed to map phy base\n"); 156 156 157 157 phy->sys_syscon =