patch-2.4.0-test2 linux/drivers/block/paride/pg.c
Next file: linux/drivers/block/paride/pt.c
Previous file: linux/drivers/block/paride/pd.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Wed Jun 21 22:31:00 2000
- Orig file:
v2.4.0-test1/linux/drivers/block/paride/pg.c
- Orig date:
Wed Feb 16 17:03:51 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/block/paride/pg.c linux/drivers/block/paride/pg.c
@@ -261,6 +261,7 @@
/* kernel glue structures */
static struct file_operations pg_fops = {
+ owner: THIS_MODULE,
read: pg_read,
write: pg_write,
open: pg_open,
@@ -308,7 +309,7 @@
}
devfs_handle = devfs_mk_dir (NULL, "pg", 2, NULL);
devfs_register_series (devfs_handle, "%u", 4, DEVFS_FL_DEFAULT,
- major, 0, S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+ major, 0, S_IFCHR | S_IRUSR | S_IWUSR,
&pg_fops, NULL);
return 0;
}
@@ -578,8 +579,6 @@
return -EBUSY;
}
- MOD_INC_USE_COUNT;
-
if (PG.busy) {
pg_reset(unit);
PG.busy = 0;
@@ -591,7 +590,6 @@
PG.bufptr = kmalloc(PG_MAX_DATA,GFP_KERNEL);
if (PG.bufptr == NULL) {
PG.access--;
- MOD_DEC_USE_COUNT;
printk("%s: buffer allocation failed\n",PG.name);
return -ENOMEM;
}
@@ -610,8 +608,6 @@
kfree(PG.bufptr);
PG.bufptr = NULL;
-
- MOD_DEC_USE_COUNT;
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)