summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/rc32434_wdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2009-02-23 14:08:35 +0100
committerWim Van Sebroeck <wim@iguana.be>2009-03-25 10:01:03 +0100
commit0aaae66179f269b7b37d0b526029c5783bed1da3 (patch)
tree7cd8789d373a029c50acacdd9b753916305046b8 /drivers/watchdog/rc32434_wdt.c
parent[WATCHDOG] rc32434_wdt: add timeout module parameter (diff)
downloadlinux-0aaae66179f269b7b37d0b526029c5783bed1da3.tar.xz
linux-0aaae66179f269b7b37d0b526029c5783bed1da3.zip
[WATCHDOG] rc32434_wdt: add shutdown method
Add shutdown method to the platform driver. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/rc32434_wdt.c')
-rw-r--r--drivers/watchdog/rc32434_wdt.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/watchdog/rc32434_wdt.c b/drivers/watchdog/rc32434_wdt.c
index 89f326a39b6b..eee29923a14d 100644
--- a/drivers/watchdog/rc32434_wdt.c
+++ b/drivers/watchdog/rc32434_wdt.c
@@ -301,11 +301,17 @@ static int __devexit rc32434_wdt_remove(struct platform_device *pdev)
return 0;
}
+static void rc32434_wdt_shutdown(struct platform_device *pdev)
+{
+ rc32434_wdt_stop();
+}
+
static struct platform_driver rc32434_wdt_driver = {
- .probe = rc32434_wdt_probe,
- .remove = __devexit_p(rc32434_wdt_remove),
- .driver = {
- .name = "rc32434_wdt",
+ .probe = rc32434_wdt_probe,
+ .remove = __devexit_p(rc32434_wdt_remove),
+ .shutdown = rc32434_wdt_shutdown,
+ .driver = {
+ .name = "rc32434_wdt",
}
};