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 3c603e8..8f0799d 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.