patch-2.4.14 linux/drivers/block/ataflop.c
Next file: linux/drivers/block/cciss.c
Previous file: linux/drivers/block/amiflop.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu Oct 25 13:58:35 2001
- Orig file:
v2.4.13/linux/drivers/block/ataflop.c
- Orig date:
Tue Oct 23 22:48:50 2001
diff -u --recursive --new-file v2.4.13/linux/drivers/block/ataflop.c linux/drivers/block/ataflop.c
@@ -1910,8 +1910,6 @@
if (fd_ref[drive] == -1 || (fd_ref[drive] && filp->f_flags & O_EXCL))
return -EBUSY;
- MOD_INC_USE_COUNT;
-
if (filp->f_flags & O_EXCL)
fd_ref[drive] = -1;
else
@@ -1950,11 +1948,11 @@
fd_ref[drive] = 0;
}
- MOD_DEC_USE_COUNT;
return 0;
}
static struct block_device_operations floppy_fops = {
+ owner: THIS_MODULE,
open: floppy_open,
release: floppy_release,
ioctl: fd_ioctl,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)