diff mbox

[v2,1/1] regulator: set constraints.apply_uV to 0 in of_get_fixed_voltage_config

Message ID 1325646449-21916-1-git-send-email-richard.zhao@linaro.org
State Accepted
Commit 0c437c4ae71c0a8110eb21c06b99853c7056b317
Headers show

Commit Message

Richard Zhao Jan. 4, 2012, 3:07 a.m. UTC
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>
---
 drivers/regulator/fixed.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Richard Zhao Jan. 6, 2012, 9:51 a.m. UTC | #1
Hi Mark,

What do you think of the patch?

Thanks
Richard
Mark Brown Jan. 6, 2012, 6:43 p.m. UTC | #2
On Fri, Jan 06, 2012 at 05:51:18PM +0800, Richard Zhao wrote:

> What do you think of the patch?

I think context is important when sending e-mails, as is not burying
your mail in the middle of old threads.
Mark Brown Jan. 6, 2012, 7:01 p.m. UTC | #3
On Wed, Jan 04, 2012 at 11:07:29AM +0800, Richard Zhao wrote:
> 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.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 393f039..e24e3a1 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) {