patch-2.3.99-pre7 linux/drivers/scsi/pcmcia/fdomain_stub.c
Next file: linux/drivers/scsi/pcmcia/qlogic_stub.c
Previous file: linux/drivers/scsi/pcmcia/aha152x_stub.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Mon May 8 21:26:05 2000
- Orig file:
v2.3.99-pre6/linux/drivers/scsi/pcmcia/fdomain_stub.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/scsi/pcmcia/fdomain_stub.c linux/drivers/scsi/pcmcia/fdomain_stub.c
@@ -2,7 +2,7 @@
A driver for Future Domain-compatible PCMCIA SCSI cards
- fdomain_cs.c 1.41 1999/11/15 06:05:48
+ fdomain_cs.c 1.42 2000/05/04 01:30:00
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
@@ -59,7 +59,7 @@
MODULE_PARM(pc_debug, "i");
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
static char *version =
-"fdomain_cs.c 1.41 1999/11/15 06:05:48 (David Hinds)";
+"fdomain_cs.c 1.42 2000/05/04 01:30:00 (David Hinds)";
#else
#define DEBUG(n, args...)
#endif
@@ -176,6 +176,7 @@
if (*linkp == NULL)
return;
+ del_timer(&link->release);
if (link->state & DEV_CONFIG) {
fdomain_release((u_long)link);
if (link->state & DEV_STALE_CONFIG) {
@@ -343,10 +344,8 @@
switch (event) {
case CS_EVENT_CARD_REMOVAL:
link->state &= ~DEV_PRESENT;
- if (link->state & DEV_CONFIG) {
- link->release.expires = jiffies + HZ/20;
- add_timer(&link->release);
- }
+ if (link->state & DEV_CONFIG)
+ mod_timer(&link->release, jiffies + HZ/20);
break;
case CS_EVENT_CARD_INSERTION:
link->state |= DEV_PRESENT | DEV_CONFIG_PENDING;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)