2002-10-08 19:10:57

by Alan Cox

[permalink] [raw]
Subject: PATCH: make tcic work again

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.2.5.41/drivers/pcmcia/tcic.c linux.2.5.41-ac1/drivers/pcmcia/tcic.c
--- linux.2.5.41/drivers/pcmcia/tcic.c 2002-10-07 22:12:24.000000000 +0100
+++ linux.2.5.41-ac1/drivers/pcmcia/tcic.c 2002-10-07 22:53:04.000000000 +0100
@@ -516,17 +516,12 @@

static void __exit exit_tcic(void)
{
- u_long flags;
unregister_ss_entry(&tcic_operations);
- save_flags(flags);
- cli();
+ del_timer_sync(&poll_timer);
if (cs_irq != 0) {
tcic_aux_setw(TCIC_AUX_SYSCFG, TCIC_SYSCFG_AUTOBUSY|0x0a00);
free_irq(cs_irq, tcic_interrupt);
}
- if (tcic_timer_pending)
- del_timer(&poll_timer);
- restore_flags(flags);
release_region(tcic_base, 16);
} /* exit_tcic */