[PATCH linux 1/3] gpio/aspeed: Pass struct resource directly to devm_ioremap_resource
OpenBMC Patches
patches at stwcx.xyz
Wed Oct 28 00:13:18 AEDT 2015
From: Jeremy Kerr <jk at ozlabs.org>
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
drivers/gpio/gpio-aspeed.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c
index 69f1269..f347260 100644
--- a/drivers/gpio/gpio-aspeed.c
+++ b/drivers/gpio/gpio-aspeed.c
@@ -104,8 +104,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
if (!res)
return -ENXIO;
- gpio->base = devm_ioremap_nocache(&pdev->dev, res->start,
- resource_size(res));
+ gpio->base = devm_ioremap_resource(&pdev->dev, res);
if (!gpio->base)
return -ENOMEM;
--
2.6.0
More information about the openbmc
mailing list