aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2005-12-10 14:36:24 +0100
committerWim Van Sebroeck <wim@iguana.be>2006-02-12 14:46:11 +0100
commitf1c3a0567aa5086e755e58385740f9ece911c06e (patch)
tree6e3848ed7c80d4fe2b048b4bd5145f469efabc69 /drivers
parentfd41fa616f21efc36eb80696475ceb33ea047a6a (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/watchdog/pcwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c
index 85c94b205df..3329cbffdb3 100644
--- a/drivers/char/watchdog/pcwd.c
+++ b/drivers/char/watchdog/pcwd.c
@@ -828,6 +828,7 @@ static void __devexit pcwatchdog_exit(void)
unregister_reboot_notifier(&pcwd_notifier);
release_region(current_readport, (revision == PCWD_REVISION_A) ? 2 : 4);
current_readport = 0x0000;
+ cards_found--;
}
/*