mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
phy: phy-rockchip-naneng-usb2: fix NULL pointer risk
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com> Change-Id: Ib3713c15b7623bba57f0dd55d0096785b6b3f8bd
This commit is contained in:
parent
85abcd6ea6
commit
00feea4350
|
|
@ -1296,7 +1296,7 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
|
|||
|
||||
rphy->base = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(rphy->base)) {
|
||||
dev_err(rphy->dev, "failed to remap phy regs\n");
|
||||
dev_err(dev, "failed to remap phy regs\n");
|
||||
return PTR_ERR(rphy->base);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user