[PATCH 1/3] ARM OMAP: gpiolib fix chip.base
Teresa Gámez
t.gamez at phytec.de
Tue Oct 9 05:53:24 EDT 2012
Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
@ Vicente: Please check if the patches fix your problem
arch/arm/mach-omap/gpio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap/gpio.c b/arch/arm/mach-omap/gpio.c
index 376e9a7..49ffbda 100644
--- a/arch/arm/mach-omap/gpio.c
+++ b/arch/arm/mach-omap/gpio.c
@@ -133,7 +133,7 @@ static int omap_gpio_probe(struct device_d *dev)
omapgpio = xzalloc(sizeof(*omapgpio));
omapgpio->base = dev_request_mem_region(dev, 0);
omapgpio->chip.ops = &omap_gpio_ops;
- omapgpio->chip.base = -1;
+ omapgpio->chip.base = dev->id * 32;
omapgpio->chip.ngpio = 32;
omapgpio->chip.dev = dev;
gpiochip_add(&omapgpio->chip);
--
1.7.0.4
More information about the barebox
mailing list