patch-2.1.31 linux/drivers/cdrom/mcdx.c

Next file: linux/drivers/cdrom/optcd.c
Previous file: linux/drivers/cdrom/mcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/cdrom/mcdx.c linux/drivers/cdrom/mcdx.c
@@ -227,7 +227,7 @@
 
 /* exported by file_ops */
 static int mcdx_open(struct inode*, struct file*);
-static void mcdx_close(struct inode*, struct file*);
+static int mcdx_close(struct inode*, struct file*);
 static int mcdx_ioctl(struct inode*, struct file*, unsigned int, unsigned long);
 
 /* misc internal support functions */
@@ -860,7 +860,7 @@
 
 }
 
-static void
+static int
 mcdx_close(struct inode *ip, struct file *fp)
 {
     struct s_drive_stuff *stuffp;
@@ -889,7 +889,7 @@
     }
 
     MOD_DEC_USE_COUNT;
-    return;
+    return 0;
 }
 
 int check_mcdx_media_change(kdev_t full_dev)

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