phy: usb: sunplus: use devm_platform_ioremap_resource_byname()
Subsystems (3)
PATCH 1/1 phy: usb: sunplus: use devm_platform_ioremap_resource_byname()
From: Ye Xingchen <[email protected]>
Convert platform_get_resource_byname(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource_byname(), as this is exactly what this function does.
Signed-off-by Ye Xingchen <[email protected]>
--- drivers/phy/sunplus/phy-sunplus-usb2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/phy/sunplus/phy-sunplus-usb2.c +1 -2
@@ -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);
Signature · 1 line
2.25.1