summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-07-07 15:03:24 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-07-07 15:03:24 +0200
commitc87ddbb1325a448d56a920513206592f03bca117 (patch)
treede30e686344ebf7466070a6582e49312e26d8317 /arch
parentc5e12a9cbb668760ca12cc2acd6b79d79bc10ea2 (diff)
regulator: allow GPIO 0 to be used for an enable signal
GPIO number 0 *is* legal and must be accepted. Set .ena_gpio to -ENODEV on regulators having no GPIO in preparation of a code change to accept GPIO 0 in the config.
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/gpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c
index 97343277d1e8..0de50d437c31 100644
--- a/arch/arm/mach-imx/gpc.c
+++ b/arch/arm/mach-imx/gpc.c
@@ -430,7 +430,7 @@ static struct regulator_desc pu_dummy_desc = {
static int pu_dummy_probe(struct platform_device *pdev)
{
- struct regulator_config config = { };
+ struct regulator_config config = { .ena_gpio = -ENODEV };
int ret;
config.dev = &pdev->dev;