diff options
author | Sean Cross <xobs@kosagi.com> | 2014-05-26 04:45:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-26 11:45:23 -0400 |
commit | fe788b09552d1ea318d80d50962d3af69fbb0dbc (patch) | |
tree | bff37251e8e8397296e43af7d4398d4c8ed5570e /drivers/regulator/pfuze100-regulator.c | |
parent | a6dcf9782f99a0d844b4d06f65cc990468424068 (diff) |
regulator: pfuze100: Don't allocate an invalid gpio
Previously, the PFUZE100 would try to allocate gpio0 io0 because
config.ena_gpio defaults to 0, which can be a valid GPIO. To prevent this
from happening, set this parameter to -EINVAL.
Signed-off-by: Sean Cross <xobs@kosagi.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/pfuze100-regulator.c')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index b20304bae7ab..930eb137427d 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c | |||
@@ -506,6 +506,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client, | |||
506 | config.init_data = init_data; | 506 | config.init_data = init_data; |
507 | config.driver_data = pfuze_chip; | 507 | config.driver_data = pfuze_chip; |
508 | config.of_node = match_of_node(i); | 508 | config.of_node = match_of_node(i); |
509 | config.ena_gpio = -EINVAL; | ||
509 | 510 | ||
510 | pfuze_chip->regulators[i] = | 511 | pfuze_chip->regulators[i] = |
511 | devm_regulator_register(&client->dev, desc, &config); | 512 | devm_regulator_register(&client->dev, desc, &config); |