]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit19f505f09c60d637c695a8e8c4768570e2309631
tree88304a11bbc66990f30ae2fb97c15828bab6b229
parent16ac4abe0d0ea0a8d42d6a2a7de2a4a00bbf5b40
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