Browse Source

[WATCHDOG] pcwd.c card_found-- fix.

When doing a __devexit from a card we should also
decrement the cards_found counter.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Wim Van Sebroeck 19 years ago
parent
commit
f1c3a0567a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/char/watchdog/pcwd.c

+ 1 - 0
drivers/char/watchdog/pcwd.c

@@ -828,6 +828,7 @@ static void __devexit pcwatchdog_exit(void)
 	unregister_reboot_notifier(&pcwd_notifier);
 	unregister_reboot_notifier(&pcwd_notifier);
 	release_region(current_readport, (revision == PCWD_REVISION_A) ? 2 : 4);
 	release_region(current_readport, (revision == PCWD_REVISION_A) ? 2 : 4);
 	current_readport = 0x0000;
 	current_readport = 0x0000;
+	cards_found--;
 }
 }
 
 
 /*
 /*