Skip to content

Commit

Permalink
regulator: set constraints.apply_uV to 0 in of_get_fixed_voltage_config
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Zhao authored and Mark Brown committed Jan 6, 2012
1 parent 65364e9 commit 0c437c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0c437c4

Please sign in to comment.