]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: always enable GPIO_OMAP on ARCH_OMAP
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 Apr 2014 09:07:03 +0000 (11:07 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 07:46:32 +0000 (09:46 +0200)
commitb8a9c265a103bce474c4ad7d245d919aaaabef8f
treee2409abdb874981056bf56627750db419de65e64
parent03e2c5b181754074cd552b875ae597aee66a3fde
gpio: always enable GPIO_OMAP on ARCH_OMAP

Commit 4df42de9d3e "gpio: omap: add a GPIO_OMAP option instead of using
ARCH_OMAP" made it possible to build OMAP kernels without the GPIO driver,
which at least on OMAP2 and OMAP3 causes build errors because of functions
used by the platform power management code:

arch/arm/mach-omap2/built-in.o: In function `omap_sram_idle':
arch/arm/mach-omap2/pm24xx.c:129: undefined reference to `omap2_gpio_prepare_for_idle'
arch/arm/mach-omap2/pm24xx.c:129: undefined reference to `omap2_gpio_resume_after_idle'

We presumably always want the GPIO driver on OMAP, so this adds a slightly
broader dependency and only allows disabling the driver only when no
OMAP2PLUS platform is selected.

However, it seems entirely reasonable to include the driver in build tests
on other platforms, so we should also allow building it for COMPILE_TEST
builds and select the required GENERIC_IRQ_CHIP that may not already be
enabled on other platforms.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig