mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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>
This commit is contained in:
parent
a6a1bcd370
commit
362ce5aeeb
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue