Skip to content

Commit 0db0a1e

Browse files
Yang Lihdeller
authored andcommitted
fbdev: pxa3xx-gcu: Use devm_platform_get_and_ioremap_resource()
According to commit 890cc39 ("drivers: provide devm_platform_get_and_ioremap_resource()"), convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 096dc32 commit 0db0a1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/video/fbdev/pxa3xx-gcu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,7 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev)
599599
priv->misc_dev.fops = &pxa3xx_gcu_miscdev_fops;
600600

601601
/* handle IO resources */
602-
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
603-
priv->mmio_base = devm_ioremap_resource(dev, r);
602+
priv->mmio_base = devm_platform_get_and_ioremap_resource(pdev, 0, &r);
604603
if (IS_ERR(priv->mmio_base))
605604
return PTR_ERR(priv->mmio_base);
606605

0 commit comments

Comments
 (0)