Skip to content

Commit

Permalink
[WATCHDOG] pcwd.c card_found-- fix.
Browse files Browse the repository at this point in the history
When doing a __devexit from a card we should also
decrement the cards_found counter.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Feb 12, 2006
1 parent fd41fa6 commit f1c3a05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/watchdog/pcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
}

/*
Expand Down

0 comments on commit f1c3a05

Please sign in to comment.