Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153969
b: refs/heads/master
c: 789cd47
h: refs/heads/master
i:
  153967: 3818701
v: v3
  • Loading branch information
Ulrik Bech Hald authored and Wim Van Sebroeck committed Jun 23, 2009
1 parent 7dd4823 commit d08b6e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90074dce5537e87b27125505bb89a373567a7ede
refs/heads/master: 789cd4702bf830416d2e1794495407be42fe95ad
7 changes: 7 additions & 0 deletions trunk/drivers/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ static int omap_wdt_open(struct inode *inode, struct file *file)
file->private_data = (void *) wdev;

omap_wdt_set_timeout(wdev);
omap_wdt_ping(wdev); /* trigger loading of new timeout value */
omap_wdt_enable(wdev);

return nonseekable_open(inode, file);
Expand Down Expand Up @@ -313,6 +314,9 @@ static int __devinit omap_wdt_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, wdev);

clk_enable(wdev->ick);
clk_enable(wdev->fck);

omap_wdt_disable(wdev);
omap_wdt_adjust_timeout(timer_margin);

Expand All @@ -332,6 +336,9 @@ static int __devinit omap_wdt_probe(struct platform_device *pdev)
/* autogate OCP interface clock */
__raw_writel(0x01, wdev->base + OMAP_WATCHDOG_SYS_CONFIG);

clk_disable(wdev->ick);
clk_disable(wdev->fck);

omap_wdt_dev = pdev;

return 0;
Expand Down

0 comments on commit d08b6e5

Please sign in to comment.