diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-10 06:19:44 +0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-04-03 05:30:36 +0400 |
commit | ceef91dcc0bca0a39c54d2f0071848b6d5c66b88 (patch) | |
tree | 63d55c592e2fb2e47b1a0bd32d131d828c933fa8 /drivers/pinctrl/sh-pfc/pinctrl.c | |
parent | 1a4fd58f76cf331c93daaa1667daa25db297d0d4 (diff) | |
download | linux-ceef91dcc0bca0a39c54d2f0071848b6d5c66b88.tar.xz |
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>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pinctrl.c')
0 files changed, 0 insertions, 0 deletions