regulator: gpio-regulator add dependency on GENERIC_GPIO
authorHeiko Stübner <heiko@sntech.de>
Tue, 11 Oct 2011 21:11:01 +0000 (23:11 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 12 Oct 2011 09:50:40 +0000 (10:50 +0100)
Without GENERIC_GPIO "struct gpio" is undefined leading to errors.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/Kconfig

index 5e0c7b6..9713b1b 100644 (file)
@@ -66,6 +66,7 @@ config REGULATOR_USERSPACE_CONSUMER
 
 config REGULATOR_GPIO
        tristate "GPIO regulator support"
+       depends on GENERIC_GPIO
        help
          This driver provides support for regulators that can be
          controlled via gpios.