提交 f1c3a056 编写于 作者: W Wim Van Sebroeck

[WATCHDOG] pcwd.c card_found-- fix.

When doing a __devexit from a card we should also
decrement the cards_found counter.
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 fd41fa61
...@@ -828,6 +828,7 @@ static void __devexit pcwatchdog_exit(void) ...@@ -828,6 +828,7 @@ static void __devexit pcwatchdog_exit(void)
unregister_reboot_notifier(&pcwd_notifier); unregister_reboot_notifier(&pcwd_notifier);
release_region(current_readport, (revision == PCWD_REVISION_A) ? 2 : 4); release_region(current_readport, (revision == PCWD_REVISION_A) ? 2 : 4);
current_readport = 0x0000; current_readport = 0x0000;
cards_found--;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册