patch-2.1.42 linux/drivers/block/ez.c

Next file: linux/drivers/cdrom/bpcd.c
Previous file: linux/arch/sparc64/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.41/linux/drivers/block/ez.c linux/drivers/block/ez.c
@@ -176,7 +176,7 @@
 static void do_ez_request(void);
 static int ez_ioctl(struct inode *inode,struct file *file,
                     unsigned int cmd, unsigned long arg);
-static void ez_release (struct inode *inode, struct file *file);
+static int ez_release (struct inode *inode, struct file *file);
 static int ez_revalidate(kdev_t dev);
 static int ez_check_media(kdev_t dev);
 static void ez_get_capacity( void );
@@ -387,7 +387,7 @@
 	}
 }
 
-static void ez_release (struct inode *inode, struct file *file)
+static int ez_release (struct inode *inode, struct file *file)
 
 {	kdev_t devp;
 
@@ -400,6 +400,7 @@
 		if (!ez_access) ez_doorlock(IDE_DOORUNLOCK);
 		MOD_DEC_USE_COUNT;
 	}
+	return 0;
 }
 
 static int ez_check_media( kdev_t dev)

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