From c87ddbb1325a448d56a920513206592f03bca117 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 7 Jul 2014 15:03:24 +0200 Subject: 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. --- arch/arm/mach-imx/gpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') 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; -- cgit v1.2.3