Commit 9b22b8c5 authored by Jingoo Han's avatar Jingoo Han Committed by Tomi Valkeinen

video: pxa3xx-gcu: use devm_ioremap_resource()

Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Cc: Daniel Mack <zonque@gmail.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent a513ad2d
...@@ -612,11 +612,9 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev) ...@@ -612,11 +612,9 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev)
/* handle IO resources */ /* handle IO resources */
r = platform_get_resource(pdev, IORESOURCE_MEM, 0); r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
priv->mmio_base = devm_request_and_ioremap(dev, r); priv->mmio_base = devm_ioremap_resource(dev, r);
if (IS_ERR(priv->mmio_base)) { if (IS_ERR(priv->mmio_base))
dev_err(dev, "failed to map I/O memory\n");
return PTR_ERR(priv->mmio_base); return PTR_ERR(priv->mmio_base);
}
/* enable the clock */ /* enable the clock */
priv->clk = devm_clk_get(dev, NULL); priv->clk = devm_clk_get(dev, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment