Skip to content

Commit 2a9c713

Browse files
Su Huivinodkoul
authored andcommitted
phy: sunplus: return negative error code in sp_usb_phy_probe
devm_phy_create() return negative error code, 'ret' should be 'PTR_ERR(phy)' rather than '-PTR_ERR(phy)'. Fixes: 99d9ccd ("phy: usb: Add USB2.0 phy driver for Sunplus SP7021") Signed-off-by: Su Hui <suhui@nfschina.com> Link: https://lore.kernel.org/r/20231120091046.163781-1-suhui@nfschina.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 06f76e4 commit 2a9c713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/sunplus/phy-sunplus-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int sp_usb_phy_probe(struct platform_device *pdev)
275275

276276
phy = devm_phy_create(&pdev->dev, NULL, &sp_uphy_ops);
277277
if (IS_ERR(phy)) {
278-
ret = -PTR_ERR(phy);
278+
ret = PTR_ERR(phy);
279279
return ret;
280280
}
281281

0 commit comments

Comments
 (0)