Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330115
b: refs/heads/master
c: 0f3cde5
h: refs/heads/master
i:
  330113: 9903bfe
  330111: 9f7a0a2
v: v3
  • Loading branch information
Fabio Estevam authored and Linus Torvalds committed Oct 5, 2012
1 parent b26e61f commit 7ebcad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 828296debf7853752e47b6abfa608ab0172e53ec
refs/heads/master: 0f3cde536d5015a918c4b3fd55fbe335428096e5
10 changes: 4 additions & 6 deletions trunk/drivers/rtc/rtc-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ static int __init mxc_rtc_probe(struct platform_device *pdev)
pdata->ioaddr = devm_ioremap(&pdev->dev, res->start,
resource_size(res));

pdata->clk = clk_get(&pdev->dev, "rtc");
pdata->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(pdata->clk)) {
dev_err(&pdev->dev, "unable to get clock!\n");
ret = PTR_ERR(pdata->clk);
goto exit_free_pdata;
}

clk_enable(pdata->clk);
clk_prepare_enable(pdata->clk);
rate = clk_get_rate(pdata->clk);

if (rate == 32768)
Expand Down Expand Up @@ -426,8 +426,7 @@ static int __init mxc_rtc_probe(struct platform_device *pdev)
exit_clr_drvdata:
platform_set_drvdata(pdev, NULL);
exit_put_clk:
clk_disable(pdata->clk);
clk_put(pdata->clk);
clk_disable_unprepare(pdata->clk);

exit_free_pdata:

Expand All @@ -440,8 +439,7 @@ static int __exit mxc_rtc_remove(struct platform_device *pdev)

rtc_device_unregister(pdata->rtc);

clk_disable(pdata->clk);
clk_put(pdata->clk);
clk_disable_unprepare(pdata->clk);
platform_set_drvdata(pdev, NULL);

return 0;
Expand Down

0 comments on commit 7ebcad6

Please sign in to comment.