summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-11 09:14:11 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-11 09:14:11 +0000
commit714a9bd641013d0bf0a7aecadd4df436bef2d6b4 (patch)
tree47941c22b612f8a0d596d51a363bb33167293fd9 /target/linux/ar71xx/files/drivers
parent9054bc91b3cca5df93990ac93af504b92e96573f (diff)
downloadmtk-20170518-714a9bd641013d0bf0a7aecadd4df436bef2d6b4.zip
mtk-20170518-714a9bd641013d0bf0a7aecadd4df436bef2d6b4.tar.gz
mtk-20170518-714a9bd641013d0bf0a7aecadd4df436bef2d6b4.tar.bz2
ar71xx: ar71xx_wdt: add shutdown handler
SVN-Revision: 29705
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r--target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c6
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 75ad0e7..d5e1f8a 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,