Message ID | 202303221053321808222@zte.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | phy: usb: sunplus: use devm_platform_ioremap_resource_byname() | expand |
diff --git a/drivers/phy/sunplus/phy-sunplus-usb2.c b/drivers/phy/sunplus/phy-sunplus-usb2.c index 56de41091d63..a5d6a33b821e 100644 --- a/drivers/phy/sunplus/phy-sunplus-usb2.c +++ b/drivers/phy/sunplus/phy-sunplus-usb2.c @@ -248,8 +248,7 @@ static int sp_usb_phy_probe(struct platform_device *pdev) usbphy->dev = &pdev->dev; - usbphy->phy_res_mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy"); - usbphy->phy_regs = devm_ioremap_resource(&pdev->dev, usbphy->phy_res_mem); + usbphy->phy_regs = devm_platform_ioremap_resource_byname(pdev, "phy"); if (IS_ERR(usbphy->phy_regs)) return PTR_ERR(usbphy->phy_regs);