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

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

diff -u --recursive --new-file v2.3.37/linux/drivers/block/acsi.c linux/drivers/block/acsi.c
@@ -1770,21 +1770,12 @@
 }
 #endif /* CONFIG_ATARI_SLM_MODULE */
 
-static struct file_operations acsi_fops = {
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,	/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* select */
-	acsi_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	acsi_open,		/* open */
-	NULL,			/* flush */
-	acsi_release,		/* release */
-	block_fsync,		/* fsync */
-	NULL,			/* fasync */
-	acsi_media_change,	/* media_change */
-	acsi_revalidate,	/* revalidate */
+static struct block_device_operations acsi_fops = {
+	open:			acsi_open,
+	release:		acsi_release,
+	ioctl:			acsi_ioctl,
+	check_media_change:	acsi_media_change,
+	revalidate:		acsi_revalidate,
 };
 
 

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