Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305888
b: refs/heads/master
c: abcf834
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Wim Van Sebroeck committed May 23, 2012
1 parent a89f2b3 commit 37d90f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: 690e7a706da6cb1af0363529603048ef3fce9e82
refs/heads/master: abcf834b80eefb2ded56254ce7de94d2ab258d22
13 changes: 3 additions & 10 deletions trunk/drivers/watchdog/wm831x_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,23 +247,16 @@ static int __devinit wm831x_wdt_probe(struct platform_device *pdev)
reg |= pdata->software << WM831X_WDOG_RST_SRC_SHIFT;

if (pdata->update_gpio) {
ret = gpio_request(pdata->update_gpio,
"Watchdog update");
ret = gpio_request_one(pdata->update_gpio,
GPIOF_DIR_OUT | GPIOF_INIT_LOW,
"Watchdog update");
if (ret < 0) {
dev_err(wm831x->dev,
"Failed to request update GPIO: %d\n",
ret);
goto err;
}

ret = gpio_direction_output(pdata->update_gpio, 0);
if (ret != 0) {
dev_err(wm831x->dev,
"gpio_direction_output returned: %d\n",
ret);
goto err_gpio;
}

driver_data->update_gpio = pdata->update_gpio;

/* Make sure the watchdog takes hardware updates */
Expand Down

0 comments on commit 37d90f7

Please sign in to comment.