From: Gernot Vormayr Date: Tue, 23 Sep 2014 22:58:45 +0000 (+0200) Subject: gpio: Fix ngpio in gpio-xilinx driver X-Git-Tag: fixes-against-v3.18-rc2~140^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b4c5a6e6b73b082170bfcbf1ff3e2fcf2e7530c;p=pandora-kernel.git gpio: Fix ngpio in gpio-xilinx driver 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. This version includes the suggestions from Linus Walleij. Tested on ml507 board. Signed-off-by: Gernot Vormayr Signed-off-by: Linus Walleij --- Reading git-diff-tree failed