diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-09-09 16:59:54 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-09-20 23:05:19 +0200 |
commit | e34ca9de0b3575fc7e94b1f520169fc7024c6dd2 (patch) | |
tree | 59f07ccc522e59385ef604003ec3e615409ff773 /drivers/gpio/gpio-iop.c | |
parent | e3f94b385748c10b735f392b69f39f33f02ca3a5 (diff) | |
download | op-kernel-dev-e34ca9de0b3575fc7e94b1f520169fc7024c6dd2.zip op-kernel-dev-e34ca9de0b3575fc7e94b1f520169fc7024c6dd2.tar.gz |
ARM: plat-iop: pass physical base for GPIO
This alters the IOP platforms to pass a physical base for their
GPIO blocks and alters the driver to remap it when probing
instead of relying on the virtual addresses to be used.
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-iop.c')
-rw-r--r-- | drivers/gpio/gpio-iop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 0d991d7..c22a61b 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -110,7 +110,7 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) struct resource *res; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = (void *) res->start; + base = devm_ioremap_resource(&pdev->dev, res); return gpiochip_add(&iop3xx_chip); } |