]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: ar7_wdt.c: use devm_request_and_ioremap
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 15 Apr 2012 10:27:33 +0000 (12:27 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 23 May 2012 14:16:43 +0000 (16:16 +0200)
commitcd9c3a4c673c4b81d74973a581d77a9f5e2d0d9f
tree98227beedb9dd62067d9daeb412b75852e6243df
parent6433c79e2e4096356fb9f1241bfd506108e5f259
watchdog: ar7_wdt.c: use devm_request_and_ioremap

Combine request_region and ioremap into devm_request_and_ioremap.  This has
the effect of fixing a missing iounmap on the failure of clk_get.

This also introduces a call to clk_put and clears the vbus_clk variable in
the case of failure or device removal.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/ar7_wdt.c