projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6a1bcd
)
watchdog: davinci_wdt: use devm managed clk get
author
Mrugesh Katepallewar
<mrugesh.mk@ti.com>
Wed, 6 Feb 2013 11:26:01 +0000
(16:56 +0530)
committer
Wim Van Sebroeck
<wim@iguana.be>
Fri, 1 Mar 2013 11:56:14 +0000
(12:56 +0100)
Get the clock using devm_clk_get().
Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/davinci_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/davinci_wdt.c
b/drivers/watchdog/davinci_wdt.c
index e8e87246ea6d9dfe722564ce0199b5b2868363a4..c3c2f8205ef151d8a47aee4820f98de46e960c5a 100644
(file)
--- a/
drivers/watchdog/davinci_wdt.c
+++ b/
drivers/watchdog/davinci_wdt.c
@@
-204,7
+204,7
@@
static int davinci_wdt_probe(struct platform_device *pdev)
int ret = 0, size;
struct device *dev = &pdev->dev;
- wdt_clk = clk_get(dev, NULL);
+ wdt_clk =
devm_
clk_get(dev, NULL);
if (WARN_ON(IS_ERR(wdt_clk)))
return PTR_ERR(wdt_clk);
@@
-257,7
+257,6
@@
static int davinci_wdt_remove(struct platform_device *pdev)
}
clk_disable_unprepare(wdt_clk);
- clk_put(wdt_clk);
return 0;
}