]> git.baikalelectronics.ru Git - kernel.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)
commit8a4ed8fe308e42b965e8e7353566923f08cddfb0
treef1a3970e00dfd46df21769c11c7d795ebd192c25
parent3a315d7963481e68871b17401368325b6b437b47
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