watchdog: cpu5wdt.c: add missing del_timer call
authordevendra.aaru <devendra.aaru@gmail.com>
Tue, 26 Jun 2012 09:18:26 +0000 (14:48 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 19 Dec 2012 21:24:41 +0000 (22:24 +0100)
We do a setup_timer at init stage of the module, but we didn't
de-activate the time using del_timer.

Signed-off-by: devendra.aaru <devendra.aaru@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/cpu5wdt.c

index cd87758abac3154d3c411ed8b3ef9194a461f389..f270bb7bc4564126638200c270882da039219c88 100644 (file)
@@ -266,6 +266,7 @@ static void cpu5wdt_exit(void)
        if (cpu5wdt_device.queue) {
                cpu5wdt_device.queue = 0;
                wait_for_completion(&cpu5wdt_device.stop);
+               del_timer(&cpu5wdt_device.timer);
        }
 
        misc_deregister(&cpu5wdt_misc);