PATCH: make tcic work again

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Oct 08 2002 - 14:02:08 EST


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 */
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:27 EST