]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: pc87413_wdt: Cleanup pc87413 watchdog driver to use
authorJonathan McDowell <noodles@earth.li>
Thu, 14 Apr 2011 19:02:39 +0000 (12:02 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 1 Jul 2011 08:05:49 +0000 (08:05 +0000)
commitf8addb27e16f328f22f2a60c2f2c8d4d6ad50a61
tree3a986696e27ea25df1aa26d2be72d9ff0090395c
parent217a44cf9a2f3bf36bd7fcf0c64ce79a24e565b3
watchdog: pc87413_wdt: Cleanup pc87413 watchdog driver to use

Inspired by Nat Gurumoorthy's recent patches for cleaning up the it87
drivers to use request_muxed_region for accessing the SuperIO area on
these chips, and the fact I have a GPIO driver for the pc8741x basically
ready for submission, here is a patch to cleanup the pc87413 watchdog
driver to use request_muxed_region for accessing the SuperIO area.

It also pulls out the details about the SWC IO area on initial driver
load, and properly does a request_region for that area - there's no
requirement to touch the SuperIO area after doing the initial watchdog
enable and IO base retrieval.

While I have hardware with a pc87413 on it it is not wired in a way that
allows the watchdog to reboot the machine, so I have not been able to
fully test these changes - I have checked that the driver correctly
initialises itself still and requests the SWC io region ok.

Signed-Off-By: Jonathan McDowell <noodles@earth.li>
Signed-Off-By: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/pc87413_wdt.c