]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG] pcwd.c card_found-- fix.
authorWim Van Sebroeck <wim@iguana.be>
Sat, 10 Dec 2005 13:36:24 +0000 (14:36 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 12 Feb 2006 13:46:11 +0000 (14:46 +0100)
When doing a __devexit from a card we should also
decrement the cards_found counter.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/char/watchdog/pcwd.c

index 85c94b205df15a370965a13a9e81e3e73cd9cd4d..3329cbffdb34a5e4d4f67fca91d737404d138702 100644 (file)
@@ -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--;
 }
 
 /*