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

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

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/dtlk.c linux/drivers/char/dtlk.c
@@ -102,6 +102,7 @@
 
 static struct file_operations dtlk_fops =
 {
+	owner:		THIS_MODULE,
 	read:		dtlk_read,
 	write:		dtlk_write,
 	poll:		dtlk_poll,
@@ -306,7 +307,6 @@
 
 static int dtlk_open(struct inode *inode, struct file *file)
 {
-	MOD_INC_USE_COUNT;
 	TRACE_TEXT("(dtlk_open");
 
 	switch (MINOR(inode->i_rdev)) {
@@ -322,7 +322,6 @@
 
 static int dtlk_release(struct inode *inode, struct file *file)
 {
-	MOD_DEC_USE_COUNT;
 	TRACE_TEXT("(dtlk_release");
 
 	switch (MINOR(inode->i_rdev)) {
@@ -353,9 +352,9 @@
 	}
 	if (dtlk_dev_probe() == 0)
 		printk(", MAJOR %d\n", dtlk_major);
-	devfs_handle = devfs_register (NULL, "dtlk", 0, DEVFS_FL_NONE,
+	devfs_handle = devfs_register (NULL, "dtlk", DEVFS_FL_DEFAULT,
 				       dtlk_major, DTLK_MINOR,
-				       S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+				       S_IFCHR | S_IRUSR | S_IWUSR,
 				       &dtlk_fops, NULL);
 
 	init_timer(&dtlk_timer);

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