diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2009-02-23 08:08:35 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2009-03-25 05:01:03 -0400 |
commit | 0aaae66179f269b7b37d0b526029c5783bed1da3 (patch) | |
tree | 7cd8789d373a029c50acacdd9b753916305046b8 /drivers | |
parent | 08eb2e0c084778f30691e3f18540cdb754c56530 (diff) |
[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')
-rw-r--r-- | drivers/watchdog/rc32434_wdt.c | 14 |
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) | |||
301 | return 0; | 301 | return 0; |
302 | } | 302 | } |
303 | 303 | ||
304 | static void rc32434_wdt_shutdown(struct platform_device *pdev) | ||
305 | { | ||
306 | rc32434_wdt_stop(); | ||
307 | } | ||
308 | |||
304 | static struct platform_driver rc32434_wdt_driver = { | 309 | static struct platform_driver rc32434_wdt_driver = { |
305 | .probe = rc32434_wdt_probe, | 310 | .probe = rc32434_wdt_probe, |
306 | .remove = __devexit_p(rc32434_wdt_remove), | 311 | .remove = __devexit_p(rc32434_wdt_remove), |
307 | .driver = { | 312 | .shutdown = rc32434_wdt_shutdown, |
308 | .name = "rc32434_wdt", | 313 | .driver = { |
314 | .name = "rc32434_wdt", | ||
309 | } | 315 | } |
310 | }; | 316 | }; |
311 | 317 | ||