Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347982
b: refs/heads/master
c: 63fbbc1
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Wim Van Sebroeck committed Dec 19, 2012
1 parent c172a6e commit 4219979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 8157becf8db0c798e1260f3af7c495a9b88e3b57
refs/heads/master: 63fbbc169674496fc2ae501d97c3905232a3bf64
11 changes: 2 additions & 9 deletions trunk/drivers/watchdog/sp805_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,10 @@ static int wdt_config(struct watchdog_device *wdd, bool ping)
int ret;

if (!ping) {
ret = clk_prepare(wdt->clk);
if (ret) {
dev_err(&wdt->adev->dev, "clock prepare fail");
return ret;
}

ret = clk_enable(wdt->clk);
ret = clk_prepare_enable(wdt->clk);
if (ret) {
dev_err(&wdt->adev->dev, "clock enable fail");
clk_unprepare(wdt->clk);
return ret;
}
}
Expand Down Expand Up @@ -190,8 +184,7 @@ static int wdt_disable(struct watchdog_device *wdd)
readl_relaxed(wdt->base + WDTLOCK);
spin_unlock(&wdt->lock);

clk_disable(wdt->clk);
clk_unprepare(wdt->clk);
clk_disable_unprepare(wdt->clk);

return 0;
}
Expand Down

0 comments on commit 4219979

Please sign in to comment.