Skip to content

Commit

Permalink
[WATCHDOG] rc32434_wdt: add shutdown method
Browse files Browse the repository at this point in the history
Add shutdown method to the platform driver.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Mar 25, 2009
1 parent 08eb2e0 commit 0aaae66
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions drivers/watchdog/rc32434_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
};

Expand Down

0 comments on commit 0aaae66

Please sign in to comment.