Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348130
b: refs/heads/master
c: 98e4a29
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Wim Van Sebroeck committed Jan 2, 2013
1 parent ee42be3 commit 39976ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: ee8c94adff9bd8609e70fb2ecdfaa71f561ed40d
refs/heads/master: 98e4a293895dda2b74476ac3a9f79c58b5d0155a
13 changes: 6 additions & 7 deletions trunk/drivers/watchdog/da9055_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,21 @@ static int da9055_wdt_set_timeout(struct watchdog_device *wdt_dev,
DA9055_TWDSCALE_MASK,
da9055_wdt_maps[i].reg_val <<
DA9055_TWDSCALE_SHIFT);
if (ret < 0)
if (ret < 0) {
dev_err(da9055->dev,
"Failed to update timescale bit, %d\n", ret);
return ret;
}

wdt_dev->timeout = timeout;

return ret;
return 0;
}

static int da9055_wdt_ping(struct watchdog_device *wdt_dev)
{
struct da9055_wdt_data *driver_data = watchdog_get_drvdata(wdt_dev);
struct da9055 *da9055 = driver_data->da9055;
int ret;

/*
* We have a minimum time for watchdog window called TWDMIN. A write
Expand All @@ -94,10 +95,8 @@ static int da9055_wdt_ping(struct watchdog_device *wdt_dev)
mdelay(DA9055_TWDMIN);

/* Reset the watchdog timer */
ret = da9055_reg_update(da9055, DA9055_REG_CONTROL_E,
DA9055_WATCHDOG_MASK, 1);

return ret;
return da9055_reg_update(da9055, DA9055_REG_CONTROL_E,
DA9055_WATCHDOG_MASK, 1);
}

static void da9055_wdt_release_resources(struct kref *r)
Expand Down

0 comments on commit 39976ec

Please sign in to comment.