patch-2.3.38 linux/drivers/i2o/i2o_block.c

Next file: linux/drivers/net/Space.c
Previous file: linux/drivers/char/tpqic02.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/i2o/i2o_block.c linux/drivers/i2o/i2o_block.c
@@ -1006,23 +1006,13 @@
 	0
 };
 
-static struct file_operations i2ob_fops =
+static struct block_device_operations i2ob_fops =
 {
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* select */
-	i2ob_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	i2ob_open,		/* open */
-	NULL,			/* flush */
-	i2ob_release,		/* release */
-	NULL,			/* fsync */
-	NULL,			/* fasync */
-	i2ob_media_change,	/* Media Change */
-	i2ob_revalidate,	/* Revalidate */
-	NULL			/* File locks */
+	open:			i2ob_open,
+	release:		i2ob_release,
+	ioctl:			i2ob_ioctl,
+	check_media_change:	i2ob_media_change,
+	revalidate:		i2ob_revalidate,
 };
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)