patch-2.3.38 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.3.37/linux/drivers/block/ide.c linux/drivers/block/ide.c
@@ -3348,21 +3348,12 @@
 		*p = (*p)->next;
 }
 
-struct file_operations ide_fops[] = {{
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* poll */
-	ide_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	ide_open,		/* open */
-	NULL,			/* flush */
-	ide_release,		/* release */
-	block_fsync,		/* fsync */
-	NULL,			/* fasync */
-	ide_check_media_change,	/* check_media_change */
-	ide_revalidate_disk	/* revalidate */
+struct block_device_operations ide_fops[] = {{
+	open:			ide_open,
+	release:		ide_release,
+	ioctl:			ide_ioctl,
+	check_media_change:	ide_check_media_change,
+	revalidate:		ide_revalidate_disk
 }};
 
 EXPORT_SYMBOL(ide_hwifs);

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