gpio: Add run-time dependencies to R-Car driver
authorJean Delvare <jdelvare@suse.de>
Fri, 23 May 2014 11:42:14 +0000 (13:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 May 2014 13:44:10 +0000 (15:44 +0200)
The Renesas R-Car GPIO driver is only useful on shmobile unless build
testing.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Magnus Damm <damm@opensource.se>
Cc: Alexandre Courbot <gnurou@gmail.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig

index 3c603e8c2173f25cfd9b52240de39f221162f626..8f0799d876c52011fa3f94344e4b653ff945faef 100644 (file)
@@ -268,7 +268,7 @@ config GPIO_PXA
 
 config GPIO_RCAR
        tristate "Renesas R-Car GPIO"
-       depends on ARM
+       depends on ARM && (ARCH_SHMOBILE || COMPILE_TEST)
        help
          Say yes here to support GPIO on Renesas R-Car SoCs.