]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: add a GPIO_OMAP option instead of using ARCH_OMAP
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Sun, 6 Apr 2014 14:58:15 +0000 (16:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Apr 2014 19:35:08 +0000 (12:35 -0700)
commit812ac22c1249223081a7456e79f14f455c5592ed
tree9c50bc53e81dbbe7e72973fc32e3af344f7a2323
parent63f5dd013da9e3ca4df04032d7ae1842bda641e7
gpio: omap: add a GPIO_OMAP option instead of using ARCH_OMAP

The ARCH_OMAP config option was used to built the GPIO OMAP
driver but this is not consistent with the rest of the GPIO
drivers that have their own Kconfig option.

Also, this make it harder to add dependencies or reverse
dependencies (i.e: select) since that would mean touching the
sub-arch config option.

So is better to add a boolean Kconfig option for this driver
that defaults to true if ARCH_OMAP is enabled.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/Makefile