patch-2.3.38 linux/drivers/block/ps2esdi.c

Next file: linux/drivers/block/rd.c
Previous file: linux/drivers/block/paride/pt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/block/ps2esdi.c linux/drivers/block/ps2esdi.c
@@ -147,19 +147,11 @@
 	{0, 0, 0, 0, 0, 0},
 	{0, 0, 0, 0, 0, 0}};
 
-static struct file_operations ps2esdi_fops =
+static struct block_device_operations ps2esdi_fops =
 {
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* poll */
-	ps2esdi_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	ps2esdi_open,		/* open */
-	NULL,			/* flush */
-	ps2esdi_release,	/* release */
-	block_fsync		/* fsync */
+	open:		ps2esdi_open,
+	release:	ps2esdi_release,
+	ioctl:		ps2esdi_ioctl,
 };
 
 static struct gendisk ps2esdi_gendisk =

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