powerpc/watchdog: Allow the Book-E driver to be compiled as a module
authorTimur Tabi <timur@freescale.com>
Mon, 20 Sep 2010 16:23:42 +0000 (11:23 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 14 Oct 2010 05:52:44 +0000 (00:52 -0500)
commitfbdd7144ceadd578bc2a875af1dabd67e80ba0d0
treea60c4bde8498c38da4b8897fb7083e7cdad5a900
parent55ec2fca3e99f83b5c674e9aba713d848392f6cc
powerpc/watchdog: Allow the Book-E driver to be compiled as a module

Register the __init and __exit functions in the PowerPC Book-E Watchdog
driver as module entry/exit functions, and modify the Kconfig entry.

Add a .release method for the PowerPC Book-E Watchdog driver, so that the
watchdog is disabled when the driver is closed.

Loosely based on original code from Jiang Yutang <b14898@freescale.com>.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/watchdog/Kconfig
drivers/watchdog/booke_wdt.c