]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG] rc32434_wdt: add shutdown method
authorWim Van Sebroeck <wim@iguana.be>
Mon, 23 Feb 2009 13:08:35 +0000 (13:08 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 25 Mar 2009 09:01:03 +0000 (09:01 +0000)
Add shutdown method to the platform driver.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/rc32434_wdt.c

index 89f326a39b6be72708af83f1257625f33bef6e4d..eee29923a14da890a221d4ed96310bb7aa050661 100644 (file)
@@ -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",
        }
 };