]> git.karo-electronics.de Git - linux-beck.git/commit
sh-pfc: Merge PFC core and gpio
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 15 Dec 2012 22:50:46 +0000 (23:50 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 00:24:21 +0000 (09:24 +0900)
commit6f6a4a683be97837f3baae443aacd2b0e6162b10
treef1a3970e00dfd46df21769c11c7d795ebd192c25
parentf9492fda70c87b410e61675095212dc806bdf615
sh-pfc: Merge PFC core and gpio

The PFC core calls the gpio module gpiochip registration in its
register_sh_pfc() function, itself called at arch initialization time.
If the gpio module isn't present then the gpiochip will never be
registered.

As the gpio module can only be present at arch initialization time if
it's builtin, there's no point in allowing to build it as a module. Make
it a boolean option, and initialize it synchronously with the core if
selected.

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