patch-2.1.31 linux/drivers/block/ide.c

Next file: linux/drivers/block/loop.c
Previous file: linux/drivers/block/ide-tape.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/block/ide.c linux/drivers/block/ide.c
@@ -1710,7 +1710,7 @@
  * Releasing a block device means we sync() it, so that it can safely
  * be forgotten about...
  */
-static void ide_release(struct inode * inode, struct file * file)
+static int ide_release(struct inode * inode, struct file * file)
 {
 	ide_drive_t *drive;
 
@@ -1721,6 +1721,7 @@
 			DRIVER(drive)->release(inode, file, drive);
 		MOD_DEC_USE_COUNT;
 	}
+	return 0;
 }
 
 void ide_unregister (unsigned int index)

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