diff options
author | Mrugesh Katepallewar <mrugesh.mk@ti.com> | 2013-02-06 06:26:01 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-03-01 06:56:14 -0500 |
commit | 362ce5aeeb1b1828f91c2ca07327f72c24183ec9 (patch) | |
tree | 928e6b9d379e2c4b5afbdbb5897d424974561335 /drivers/watchdog | |
parent | a6a1bcd3700a792d89999a7ec89a9303534ccefc (diff) |
watchdog: davinci_wdt: use devm managed clk get
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/davinci_wdt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/watchdog/davinci_wdt.c index e8e87246ea6d..c3c2f8205ef1 100644 --- 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) | |||
204 | int ret = 0, size; | 204 | int ret = 0, size; |
205 | struct device *dev = &pdev->dev; | 205 | struct device *dev = &pdev->dev; |
206 | 206 | ||
207 | wdt_clk = clk_get(dev, NULL); | 207 | wdt_clk = devm_clk_get(dev, NULL); |
208 | if (WARN_ON(IS_ERR(wdt_clk))) | 208 | if (WARN_ON(IS_ERR(wdt_clk))) |
209 | return PTR_ERR(wdt_clk); | 209 | return PTR_ERR(wdt_clk); |
210 | 210 | ||
@@ -257,7 +257,6 @@ static int davinci_wdt_remove(struct platform_device *pdev) | |||
257 | } | 257 | } |
258 | 258 | ||
259 | clk_disable_unprepare(wdt_clk); | 259 | clk_disable_unprepare(wdt_clk); |
260 | clk_put(wdt_clk); | ||
261 | 260 | ||
262 | return 0; | 261 | return 0; |
263 | } | 262 | } |