From 1b4c5a6e6b73b082170bfcbf1ff3e2fcf2e7530c Mon Sep 17 00:00:00 2001 From: Gernot Vormayr Date: Wed, 24 Sep 2014 00:58:45 +0200 Subject: [PATCH] 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-format-patch failed