Skip to content
Commit 1b4c5a6e authored by Gernot Vormayr's avatar Gernot Vormayr Committed by Linus Walleij
Browse files

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: default avatarGernot Vormayr <gvormayr@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 58a3b92d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment