linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: pxa3xx-gcu: use devm_ioremap_resource()
@ 2014-04-03  0:09 Jingoo Han
  0 siblings, 0 replies; only message in thread
From: Jingoo Han @ 2014-04-03  0:09 UTC (permalink / raw)
  To: linux-fbdev

Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Daniel Mack <zonque@gmail.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
---
 drivers/video/fbdev/pxa3xx-gcu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c
index 417f9a2..dd8bc18 100644
--- a/drivers/video/fbdev/pxa3xx-gcu.c
+++ b/drivers/video/fbdev/pxa3xx-gcu.c
@@ -612,7 +612,7 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev)
 
 	/* handle IO resources */
 	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)) {
 		dev_err(dev, "failed to map I/O memory\n");
 		return PTR_ERR(priv->mmio_base);
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-03  0:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-03  0:09 [PATCH] video: pxa3xx-gcu: use devm_ioremap_resource() Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).