* [PATCH] gpio: ep93xx: Use devm_ioremap_resource()
@ 2014-05-27 6:25 Jingoo Han
2014-05-27 14:01 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2014-05-27 6:25 UTC (permalink / raw)
To: 'Linus Walleij'
Cc: linux-gpio, 'Alexandre Courbot',
'Abdoulaye Berthe', 'Jingoo Han'
Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/gpio/gpio-ep93xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c
index dd39f27..dcc2bb4 100644
--- a/drivers/gpio/gpio-ep93xx.c
+++ b/drivers/gpio/gpio-ep93xx.c
@@ -352,7 +352,7 @@ static int ep93xx_gpio_probe(struct platform_device *pdev)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- ep93xx_gpio->mmio_base = devm_request_and_ioremap(dev, res);
+ ep93xx_gpio->mmio_base = devm_ioremap_resource(dev, res);
if (IS_ERR(ep93xx_gpio->mmio_base))
return PTR_ERR(ep93xx_gpio->mmio_base);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: ep93xx: Use devm_ioremap_resource()
2014-05-27 6:25 [PATCH] gpio: ep93xx: Use devm_ioremap_resource() Jingoo Han
@ 2014-05-27 14:01 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-05-27 14:01 UTC (permalink / raw)
To: Jingoo Han; +Cc: linux-gpio, Alexandre Courbot, Abdoulaye Berthe
On Tue, May 27, 2014 at 8:25 AM, Jingoo Han <jg1.han@samsung.com> wrote:
> Use devm_ioremap_resource() because devm_request_and_ioremap() is
> obsoleted by devm_ioremap_resource().
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-27 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 6:25 [PATCH] gpio: ep93xx: Use devm_ioremap_resource() Jingoo Han
2014-05-27 14:01 ` Linus Walleij
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.