]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh-pfc: Skip gpiochip registration when no GPIO resource is found
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 10 Mar 2013 02:19:44 +0000 (03:19 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 27 Mar 2013 05:08:33 +0000 (14:08 +0900)
commit849a4c55c816d8f92de47c9d85560b66014abbd2
treef3e26180b3d92bd1d25d04a238abcd15e22e824d
parent2dd895b37b8848479035ab957f4fdbf5025d48fc
sh-pfc: Skip gpiochip registration when no GPIO resource is found

Boards/platforms that register dedicated GPIO devices will not supply a
memory resource for GPIOs. Try to locate the GPIO memory resource at
initialization time, and skip registration of the gpiochip if the
resource can't be found.

This is a temporary modification to ease the transition to separate GPIO
drivers. It should be reverted when all boards and platforms will have
been moved.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pinctrl/sh-pfc/gpio.c