patch-2.4.0-test2 linux/drivers/sbus/char/vfc_dev.c

Next file: linux/drivers/scsi/3w-xxxx.c
Previous file: linux/drivers/sbus/char/uctrl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
@@ -166,9 +166,9 @@
 		return -EIO;
 
 	sprintf (devname, "%d", instance);
-	dev->de = devfs_register (devfs_handle, devname, 0, DEVFS_FL_DEFAULT,
+	dev->de = devfs_register (devfs_handle, devname, DEVFS_FL_DEFAULT,
 				  VFC_MAJOR, instance,
-				  S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+				  S_IFCHR | S_IRUSR | S_IWUSR,
 				  &vfc_fops, NULL);
 	return 0;
 }
@@ -190,7 +190,6 @@
 		return -EBUSY;
 
 	dev->busy = 1;
-	MOD_INC_USE_COUNT;
 	vfc_lock_device(dev);
 	
 	vfc_csr_init(dev);
@@ -214,7 +213,6 @@
 	if (!dev->busy)
 		return;
 	dev->busy = 0;
-	MOD_DEC_USE_COUNT;
 }
 
 static int vfc_debug(struct vfc_dev *dev, int cmd, unsigned long arg) 
@@ -635,6 +633,7 @@
 }
 
 static struct file_operations vfc_fops = {
+	owner:		THIS_MODULE,
 	llseek:		vfc_lseek,
 	ioctl:		vfc_ioctl,
 	mmap:		vfc_mmap,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)