patch-2.4.0-test2 linux/drivers/char/dsp56k.c

Next file: linux/drivers/char/dtlk.c
Previous file: linux/drivers/char/ds1620.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/dsp56k.c linux/drivers/char/dsp56k.c
@@ -472,10 +472,6 @@
 		return -ENXIO;
 	}
 
-#ifdef MODULE
-	MOD_INC_USE_COUNT;
-#endif /* MODULE */
-
 	return 0;
 }
 
@@ -495,13 +491,11 @@
 		return -ENXIO;
 	}
 
-#ifdef MODULE
-	MOD_DEC_USE_COUNT;
-#endif
 	return 0;
 }
 
 static struct file_operations dsp56k_fops = {
+	owner:		THIS_MODULE,
 	read:		dsp56k_read,
 	write:		dsp56k_write,
 	ioctl:		dsp56k_ioctl,
@@ -525,9 +519,9 @@
 		printk("DSP56k driver: Unable to register driver\n");
 		return -ENODEV;
 	}
-	devfs_handle = devfs_register (NULL, "dsp56k", 0, DEVFS_FL_NONE,
+	devfs_handle = devfs_register (NULL, "dsp56k", DEVFS_FL_DEFAULT,
 				       DSP56K_MAJOR, 0,
-				       S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+				       S_IFCHR | S_IRUSR | S_IWUSR,
 				       &dsp56k_fops, NULL);
 
 	dsp56k.in_use = 0;

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