phy: sunplus: Fix an IS_ERR() vs NULL bug in sp_usb_phy_probe
authorPeng Wu <wupeng58@huawei.com>
Sun, 11 Sep 2022 06:00:53 +0000 (06:00 +0000)
committerVinod Koul <vkoul@kernel.org>
Fri, 4 Nov 2022 18:59:57 +0000 (00:29 +0530)
commit6e59419fd0a244dd55e53e798797f0697dec8b1c
treec66b6b094942f85f2e1c4b4f7ff85a23d91b178f
parent04948e757148f870a31f4887ea2239403f516c3c
phy: sunplus: Fix an IS_ERR() vs NULL bug in sp_usb_phy_probe

The devm_ioremap() function returns NULL on error, it doesn't return
error pointers.

Fixes: 99d9ccd973852 ("phy: usb: Add USB2.0 phy driver for Sunplus SP7021")
Signed-off-by: Peng Wu <wupeng58@huawei.com>
Link: https://lore.kernel.org/r/20220911060053.123594-1-wupeng58@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/sunplus/phy-sunplus-usb2.c