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

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

diff -u --recursive --new-file v2.1.30/linux/drivers/cdrom/aztcd.c linux/drivers/cdrom/aztcd.c
@@ -330,7 +330,7 @@
 static void do_aztcd_request(void);
 static void azt_invalidate_buffers(void);
 int         aztcd_open(struct inode *ip, struct file *fp);
-static void aztcd_release(struct inode * inode, struct file * file);
+static int  aztcd_release(struct inode * inode, struct file * file);
 int         aztcd_init(void);
 #ifdef MODULE
  int        init_module(void);
@@ -1542,7 +1542,7 @@
 /*
  * On close, we flush all azt blocks from the buffer cache.
  */
-static void aztcd_release(struct inode * inode, struct file * file)
+static int aztcd_release(struct inode * inode, struct file * file)
 { 
 #ifdef AZT_DEBUG
   printk("aztcd: executing aztcd_release\n");
@@ -1558,7 +1558,7 @@
            aztSendCmd(ACMD_EJECT);
         CLEAR_TIMER;
   }
-  return;
+  return 0;
 }
 
 

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