From: Laurent Pinchart Date: Sun, 10 Mar 2013 02:19:44 +0000 (+0100) Subject: sh-pfc: Skip gpiochip registration when no GPIO resource is found X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~9^2~9^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceef91dcc0bca0a39c54d2f0071848b6d5c66b88;p=pandora-kernel.git 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 Acked-by: Linus Walleij Signed-off-by: Simon Horman --- Reading git-diff-tree failed