Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177736
b: refs/heads/master
c: 53b8a9d
h: refs/heads/master
v: v3
  • Loading branch information
Juha Keski-Saari authored and Liam Girdwood committed Dec 17, 2009
1 parent 2b3c153 commit 348c55b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30010fa52c7bd466b441e3f9020ba4cf6154fa41
refs/heads/master: 53b8a9d92a713fa82316bf418dcc19d6da32ca05
8 changes: 7 additions & 1 deletion trunk/drivers/regulator/twl-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
Expand Down Expand Up @@ -134,6 +135,7 @@ static int twlreg_enable(struct regulator_dev *rdev)
{
struct twlreg_info *info = rdev_get_drvdata(rdev);
int grp;
int ret;

grp = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_GRP);
if (grp < 0)
Expand All @@ -144,7 +146,11 @@ static int twlreg_enable(struct regulator_dev *rdev)
else
grp |= P1_GRP_6030;

return twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_GRP, grp);
ret = twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_GRP, grp);

udelay(info->delay);

return ret;
}

static int twlreg_disable(struct regulator_dev *rdev)
Expand Down

0 comments on commit 348c55b

Please sign in to comment.