Skip to contentSkip to conversation

twl4030-regulator: Remove regulator from all groups when disabling

PATCH New Eduardo Valentin 1 participant 1 message Nov 20, 2009 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 twl4030-regulator: Remove regulator from all groups when disabling

From: Eduardo Valentin <[email protected]>

Just remove regulator from all groups when disabling. This way we avoid problems if boot loader touches twl4030 registers.

---
 drivers/regulator/twl4030-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/twl4030-regulator.c +1 -1
index e2032fb..9365140 100644
@@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
 	if (grp < 0)
 		return grp;
 
-	grp &= ~P1_GRP;
+	grp &= ~(P1_GRP | P2_GRP | P3_GRP);
 	return twl4030reg_write(info, VREG_GRP, grp);
 }
 
Signature · 1 line
1.6.5.7.g9ecb2