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

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

diff -u --recursive --new-file v2.1.30/linux/drivers/block/ide-tape.c linux/drivers/block/ide-tape.c
@@ -3271,7 +3271,7 @@
 /*
  *	Our character device release function.
  */
-static void idetape_chrdev_release (struct inode *inode, struct file *filp)
+static int idetape_chrdev_release (struct inode *inode, struct file *filp)
 {
 	ide_drive_t *drive = get_drive_ptr (inode->i_rdev);
 	idetape_tape_t *tape = drive->driver_data;
@@ -3310,6 +3310,7 @@
 	clear_bit (IDETAPE_BUSY, &tape->flags);
 	if (tape->chrdev_direction == idetape_direction_none)
 		MOD_DEC_USE_COUNT;
+	return 0;
 }
 
 /*

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