patch-2.1.42 linux/drivers/cdrom/bpcd.c

Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/block/ez.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.41/linux/drivers/cdrom/bpcd.c linux/drivers/cdrom/bpcd.c
@@ -149,7 +149,7 @@
 static void 	do_bp_read(void);
 static int 	bp_ioctl(struct inode *inode,struct file *file,
                          unsigned int cmd, unsigned long arg);
-static void 	bp_release (struct inode *inode, struct file *file);
+static int 	bp_release (struct inode *inode, struct file *file);
 
 static int 	bp_detect(void);
 static int      bp_lock(void);
@@ -277,7 +277,7 @@
 	}
 }
 
-static void bp_release (struct inode *inode, struct file *file)
+static int bp_release (struct inode *inode, struct file *file)
 
 {	kdev_t	devp;
 
@@ -290,6 +290,7 @@
 	    bp_unlock();
 	}
 	MOD_DEC_USE_COUNT;
+	return 0;
 }
 
 #ifdef MODULE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov