Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302259
b: refs/heads/master
c: 09e3fd2
h: refs/heads/master
i:
  302257: 5321d06
  302255: a165357
v: v3
  • Loading branch information
Mark Brown committed May 7, 2012
1 parent bf906ee commit ba3a0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: a60cfce051dd5e22329df1018d278bf3e52d82bc
refs/heads/master: 09e3fd202df67ec5d6d9a04c05b58c7367580226
9 changes: 1 addition & 8 deletions trunk/drivers/regulator/wm8994-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,12 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
if (pdata->ldo[id].enable && gpio_is_valid(pdata->ldo[id].enable)) {
ldo->enable = pdata->ldo[id].enable;

ret = gpio_request(ldo->enable, "WM8994 LDO enable");
ret = gpio_request_one(ldo->enable, 0, "WM8994 LDO enable");
if (ret < 0) {
dev_err(&pdev->dev, "Failed to get enable GPIO: %d\n",
ret);
goto err;
}

ret = gpio_direction_output(ldo->enable, ldo->is_enabled);
if (ret < 0) {
dev_err(&pdev->dev, "Failed to set GPIO up: %d\n",
ret);
goto err_gpio;
}
} else
ldo->is_enabled = true;

Expand Down

0 comments on commit ba3a0b3

Please sign in to comment.