diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2014-11-03 19:12:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-07 11:30:25 +0000 |
commit | 1de3821ace8200432993821bfda043827029de2a (patch) | |
tree | 0cbde00f92a160441e1d9928cbbc26e856d0b371 /drivers/regulator/s5m8767.c | |
parent | 76f439df50aba1838e06dd01e5f20dada7473f57 (diff) | |
download | linux-1de3821ace8200432993821bfda043827029de2a.tar.gz linux-1de3821ace8200432993821bfda043827029de2a.tar.bz2 linux-1de3821ace8200432993821bfda043827029de2a.zip |
regulator: Set ena_gpio_initialized in regulator drivers
This patch sets ena_gpio_initialized for all drivers which set a
ena_gpio from parsed DT properties. Drivers using pdata may get zero
initialized pdata and therefore copy a 0 into the regulator_config
ena_gpio field.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/s5m8767.c')
-rw-r--r-- | drivers/regulator/s5m8767.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 0ab5cbeeb797..4225df68dd4d 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@ -950,6 +950,7 @@ static int s5m8767_pmic_probe(struct platform_device *pdev) config.of_node = pdata->regulators[i].reg_node; config.ena_gpio = -EINVAL; config.ena_gpio_flags = 0; + config.ena_gpio_initialized = true; if (gpio_is_valid(pdata->regulators[i].ext_control_gpio)) s5m8767_regulator_config_ext_control(s5m8767, &pdata->regulators[i], &config); |