]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
gpio: tegra: Allow compile test
authorAlexander Stein <alexanders83@web.de>
Wed, 24 Feb 2016 19:54:32 +0000 (20:54 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:05:40 +0000 (14:05 +0200)
Allow compile testing this driver by adding a new config option which
is enabled by default and depends on the old symbol or COMPILE_TEST.

Signed-off-by: Alexander Stein <alexanders83@web.de>
drivers/gpio/Kconfig
drivers/gpio/Makefile

index 9776ea547a4d72f4443d499c7c8361d206d0e6d2..f73f26b4353256089c99b995f38032a29de4f4c9 100644 (file)
@@ -400,6 +400,11 @@ config GPIO_TB10X
        select GENERIC_IRQ_CHIP
        select OF_GPIO
 
+config GPIO_TEGRA
+       bool
+       default y
+       depends on ARCH_TEGRA || COMPILE_TEST
+
 config GPIO_TS4800
        tristate "TS-4800 DIO blocks and compatibles"
        depends on OF_GPIO
index 40ab9134a40cd52cf936534c55e77e65fdd02dc1..74eb1a7b20c587e1108327950908da992bffc960 100644 (file)
@@ -95,7 +95,7 @@ obj-$(CONFIG_GPIO_SX150X)     += gpio-sx150x.o
 obj-$(CONFIG_GPIO_SYSCON)      += gpio-syscon.o
 obj-$(CONFIG_GPIO_TB10X)       += gpio-tb10x.o
 obj-$(CONFIG_GPIO_TC3589X)     += gpio-tc3589x.o
-obj-$(CONFIG_ARCH_TEGRA)       += gpio-tegra.o
+obj-$(CONFIG_GPIO_TEGRA)       += gpio-tegra.o
 obj-$(CONFIG_GPIO_TIMBERDALE)  += gpio-timberdale.o
 obj-$(CONFIG_GPIO_PALMAS)      += gpio-palmas.o
 obj-$(CONFIG_GPIO_TPIC2810)    += gpio-tpic2810.o