Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315953
b: refs/heads/master
c: c362cb5
h: refs/heads/master
i:
  315951: 8f6312f
v: v3
  • Loading branch information
Linus Walleij authored and Wim Van Sebroeck committed Jul 23, 2012
1 parent 0e9b631 commit f6406c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 3017020dc73a3ae222db2cda9b5952f0e4cf7a09
refs/heads/master: c362cb597b5c30a32f4228136e0dfd9bf4c5d65b
7 changes: 4 additions & 3 deletions trunk/drivers/watchdog/coh901327_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ static int __exit coh901327_remove(struct platform_device *pdev)
watchdog_unregister_device(&coh901327_wdt);
coh901327_disable();
free_irq(irq, pdev);
clk_unprepare(clk);
clk_put(clk);
iounmap(virtbase);
release_mem_region(phybase, physize);
Expand Down Expand Up @@ -300,9 +301,9 @@ static int __init coh901327_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "could not get clock\n");
goto out_no_clk;
}
ret = clk_enable(clk);
ret = clk_prepare_enable(clk);
if (ret) {
dev_err(&pdev->dev, "could not enable clock\n");
dev_err(&pdev->dev, "could not prepare and enable clock\n");
goto out_no_clk_enable;
}

Expand Down Expand Up @@ -369,7 +370,7 @@ static int __init coh901327_probe(struct platform_device *pdev)
out_no_wdog:
free_irq(irq, pdev);
out_no_irq:
clk_disable(clk);
clk_disable_unprepare(clk);
out_no_clk_enable:
clk_put(clk);
out_no_clk:
Expand Down

0 comments on commit f6406c2

Please sign in to comment.