From 235cf01dcf462432d65bfbc2b806d7d2a6cae097 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 11 Jan 2012 09:14:11 +0000 Subject: [PATCH] ar71xx: ar71xx_wdt: add shutdown handler SVN-Revision: 29705 --- target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.30.2