]> git.karo-electronics.de Git - karo-tx-linux.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, 14 Apr 2014 08:22:51 +0000 (10:22 +0200)
commit4df42de9d3e2521000912eaa917cd75f42f13434
tree62d67bda2b6d3b82b2c277c7273307c22843fdcf
parentd4094cd7577cf06a1e0920eca29031b2c33fcda4
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