phy: sunplus: return negative error code in sp_usb_phy_probe
authorSu Hui <suhui@nfschina.com>
Mon, 20 Nov 2023 09:10:47 +0000 (17:10 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Nov 2023 13:09:18 +0000 (18:39 +0530)
commit2a9c713825b3127ece11984abf973672c9779518
treee4d6cb15c45adfcfaf7b397313de4054f6c3373d
parent06f76e464ac81c6915430b7155769ea4ef16efe4
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>
drivers/phy/sunplus/phy-sunplus-usb2.c