From 1e26127833f3ad5e0a5f5873faf21d91b61e0c56 Mon Sep 17 00:00:00 2001
From: Heiko Stuebner <heiko@sntech.de>
Date: Tue, 11 Oct 2011 22:45:16 +0200
Subject: [PATCH] regulator: gpio-regulator add dependency on GENERIC_GPIO

Without GENERIC_GPIO "struct gpio" is undefined leading to errors.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 drivers/regulator/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 5e0c7b6..9713b1b 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -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.
-- 
1.7.2.3

