diff options
author | Su Hui <suhui@nfschina.com> | 2023-11-20 10:10:47 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-11-27 14:09:18 +0100 |
commit | 2a9c713825b3127ece11984abf973672c9779518 (patch) | |
tree | e4d6cb15c45adfcfaf7b397313de4054f6c3373d /drivers/phy/sunplus/phy-sunplus-usb2.c | |
parent | phy: mediatek: mipi: mt8183: fix minimal supported frequency (diff) | |
download | linux-2a9c713825b3127ece11984abf973672c9779518.tar.xz linux-2a9c713825b3127ece11984abf973672c9779518.zip |
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: 99d9ccd97385 ("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>
Diffstat (limited to 'drivers/phy/sunplus/phy-sunplus-usb2.c')
-rw-r--r-- | drivers/phy/sunplus/phy-sunplus-usb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/sunplus/phy-sunplus-usb2.c b/drivers/phy/sunplus/phy-sunplus-usb2.c index 0efe74ac9c6a..637a5fbae6d9 100644 --- a/drivers/phy/sunplus/phy-sunplus-usb2.c +++ b/drivers/phy/sunplus/phy-sunplus-usb2.c @@ -275,7 +275,7 @@ static int sp_usb_phy_probe(struct platform_device *pdev) phy = devm_phy_create(&pdev->dev, NULL, &sp_uphy_ops); if (IS_ERR(phy)) { - ret = -PTR_ERR(phy); + ret = PTR_ERR(phy); return ret; } |