Skip to content

Commit

Permalink
watchdog: cpu5wdt.c: add missing del_timer call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
devendra.aaru authored and Wim Van Sebroeck committed Dec 19, 2012
1 parent e16cfb9 commit e09d9c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/watchdog/cpu5wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e09d9c3

Please sign in to comment.