]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: pnx4008: cleanup resource handling using managed devices
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 2 Feb 2012 17:48:08 +0000 (18:48 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 27 Mar 2012 17:59:03 +0000 (19:59 +0200)
commitd2a84814d418bfe07c903184e1b66402c1f7b6c3
tree88304a11bbc66990f30ae2fb97c15828bab6b229
parent4013ce07022f61464c55bb1d46d344763ed6a523
watchdog: pnx4008: cleanup resource handling using managed devices

The resource handling in this driver was flaky: IO_ADDRESS instead of
ioremap (and no unmapping), an unneeded static resource, no central exit
path for error cases. Fix this by converting the driver to use managed
resources. Also use dev_*-messages instead of pr_* while we are here.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/pnx4008_wdt.c