Re: [PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-23 Thread Gernot Vormayr
On Tue, Sep 23, 2014 at 5:38 PM, Linus Walleij wrote: > > The fact that the same code appears in two places tells us something > is not quite right. Can you look into consolidating this (in a separate > patch)? Well, I already thought about that, but since the second time is for the second part

Re: [PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-23 Thread Linus Walleij
On Thu, Sep 18, 2014 at 11:03 AM, Gernot Vormayr wrote: > If one adds 'gpio-controller;' to the chip in the devicetree, then > initialization fails with 'gpiochip_find_base: cannot find free range', > because ngpio is 0. This patch fixes the bug. > > Tested on ml507 board. > > Signed-off-by: Gern

[PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-18 Thread Gernot Vormayr
If one adds 'gpio-controller;' to the chip in the devicetree, then initialization fails with 'gpiochip_find_base: cannot find free range', because ngpio is 0. This patch fixes the bug. Tested on ml507 board. Signed-off-by: Gernot Vormayr --- drivers/gpio/gpio-xilinx.c | 11 +++ 1 file c