diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-01-11 09:14:11 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-01-11 09:14:11 +0000 |
commit | 55412d0e9e1d477697fde1f67faf20eb9475af49 (patch) | |
tree | 952cff94db79f92af34d5674405845334683b125 /target | |
parent | 5910803e534583fea57933264ac431ac9c9054a5 (diff) | |
download | upstream-55412d0e9e1d477697fde1f67faf20eb9475af49.tar.gz upstream-55412d0e9e1d477697fde1f67faf20eb9475af49.tar.bz2 upstream-55412d0e9e1d477697fde1f67faf20eb9475af49.zip |
ar71xx: ar71xx_wdt: add shutdown handler
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29705 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c index 75ad0e789c..d5e1f8a3ca 100644 --- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c +++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c @@ -269,9 +269,15 @@ static int __devexit ar71xx_wdt_remove(struct platform_device *pdev) return 0; } +static void ar71xx_wdt_shutdown(struct platform_device *pdev) +{ + ar71xx_wdt_disable(); +} + static struct platform_driver ar71xx_wdt_driver = { .probe = ar71xx_wdt_probe, .remove = __devexit_p(ar71xx_wdt_remove), + .shutdown = ar71xx_wdt_shutdown, .driver = { .name = DRV_NAME, .owner = THIS_MODULE, |