mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
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: 99d9ccd973
("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>
This commit is contained in:
parent
06f76e464a
commit
2a9c713825
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user