diff options
author | Richard Zhao <richard.zhao@linaro.org> | 2012-01-04 04:07:29 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-06 20:01:09 +0100 |
commit | 0c437c4ae71c0a8110eb21c06b99853c7056b317 (patch) | |
tree | 48f36f2897baa33955559aa5667324109b0d4075 /drivers/regulator | |
parent | regulator: max8925: fix enabled/disabled judgement mistake (diff) | |
download | linux-0c437c4ae71c0a8110eb21c06b99853c7056b317.tar.xz linux-0c437c4ae71c0a8110eb21c06b99853c7056b317.zip |
regulator: set constraints.apply_uV to 0 in of_get_fixed_voltage_config
Fix fixed regulator using DT failed to call regulator_register.
of_get_regulator_init_data set apply_uV to 1, but fixed regulator
doesn't need it. Set it back to 0.
Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/fixed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 393f03982180..e24e3a174c4b 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -69,6 +69,7 @@ of_get_fixed_voltage_config(struct device *dev) return NULL; init_data = config->init_data; + init_data->constraints.apply_uV = 0; config->supply_name = init_data->constraints.name; if (init_data->constraints.min_uV == init_data->constraints.max_uV) { |