[PATCH 1/3] ARM OMAP: gpiolib fix chip.base

Sascha Hauer s.hauer at pengutronix.de
Wed Oct 10 03:32:01 EDT 2012


On Tue, Oct 09, 2012 at 11:53:24AM +0200, Teresa Gámez wrote:
> 
> 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(-)

Applied this series to master.

Sascha

> 
> 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
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list