aboutsummaryrefslogtreecommitdiffstats
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
parent[WATCHDOG] pcwd.c add comments + tabs (diff)
downloadlinux-dev-f1c3a0567aa5086e755e58385740f9ece911c06e.tar.xz
linux-dev-f1c3a0567aa5086e755e58385740f9ece911c06e.zip
[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 85c94b205df1..3329cbffdb34 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--;
}
/*