From: Mrugesh Katepallewar Date: Wed, 6 Feb 2013 11:26:01 +0000 (+0530) Subject: watchdog: davinci_wdt: use devm managed clk get X-Git-Tag: next-20130220~46^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5a27b2abaacabd08fded0f67ef9220c672c84286;p=karo-tx-linux.git watchdog: davinci_wdt: use devm managed clk get Get the clock using devm_clk_get(). Signed-off-by: Mrugesh Katepallewar Signed-off-by: Wim Van Sebroeck --- 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) 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; }