From: Wim Van Sebroeck Date: Sat, 10 Dec 2005 13:36:24 +0000 (+0100) Subject: [WATCHDOG] pcwd.c card_found-- fix. X-Git-Tag: v2.6.16-rc3~6^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1c3a0567aa5086e755e58385740f9ece911c06e;p=platform%2Fkernel%2Flinux-3.10.git [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 --- diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c index 85c94b2..3329cbf 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--; } /*