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

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

diff -u --recursive --new-file v2.1.30/linux/drivers/block/xd.c linux/drivers/block/xd.c
@@ -294,7 +294,7 @@
 }
 
 /* xd_release: release the device */
-static void xd_release (struct inode *inode, struct file *file)
+static int xd_release (struct inode *inode, struct file *file)
 {
 	int target;
 
@@ -303,6 +303,7 @@
 		sync_dev(inode->i_rdev);
 		xd_access[target]--;
 	}
+	return 0;
 }
 
 /* xd_reread_partitions: rereads the partition table from a drive */

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