Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360585
b: refs/heads/master
c: 5071a88
h: refs/heads/master
i:
  360583: 1e73fdc
v: v3
  • Loading branch information
Gabor Juhos authored and Wim Van Sebroeck committed Mar 1, 2013
1 parent 2783f40 commit 1992d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 41adafbd7b84c66c2cdad857b75d5d45032310a6
refs/heads/master: 5071a88475b758bf60191e53606463fe7290c71e
7 changes: 2 additions & 5 deletions trunk/drivers/watchdog/ath79_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ static int ath79_wdt_probe(struct platform_device *pdev)
u32 ctrl;
int err;

wdt_clk = clk_get(&pdev->dev, "wdt");
wdt_clk = devm_clk_get(&pdev->dev, "wdt");
if (IS_ERR(wdt_clk))
return PTR_ERR(wdt_clk);

err = clk_enable(wdt_clk);
if (err)
goto err_clk_put;
return err;

wdt_freq = clk_get_rate(wdt_clk);
if (!wdt_freq) {
Expand Down Expand Up @@ -265,16 +265,13 @@ static int ath79_wdt_probe(struct platform_device *pdev)

err_clk_disable:
clk_disable(wdt_clk);
err_clk_put:
clk_put(wdt_clk);
return err;
}

static int ath79_wdt_remove(struct platform_device *pdev)
{
misc_deregister(&ath79_wdt_miscdev);
clk_disable(wdt_clk);
clk_put(wdt_clk);
return 0;
}

Expand Down

0 comments on commit 1992d94

Please sign in to comment.