提交 0c437c4a 编写于 作者: R Richard Zhao 提交者: Mark Brown

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: NRichard Zhao <richard.zhao@linaro.org>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 65364e9a
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册