diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2005-12-10 16:36:24 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2006-02-12 16:46:11 +0300 |
commit | f1c3a0567aa5086e755e58385740f9ece911c06e (patch) | |
tree | 6e3848ed7c80d4fe2b048b4bd5145f469efabc69 | |
parent | fd41fa616f21efc36eb80696475ceb33ea047a6a (diff) | |
download | linux-f1c3a0567aa5086e755e58385740f9ece911c06e.tar.xz |
[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>
-rw-r--r-- | drivers/char/watchdog/pcwd.c | 1 |
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--; } /* |