patch-2.3.38 linux/drivers/acorn/block/mfmhd.c

Next file: linux/drivers/ap1000/ap.c
Previous file: linux/drivers/acorn/block/fd1772.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/acorn/block/mfmhd.c linux/drivers/acorn/block/mfmhd.c
@@ -1365,22 +1365,11 @@
 	hardsect_size[MAJOR_NR] = mfm_sectsizes;
 }
 
-static struct file_operations mfm_fops =
+static struct block_device_operations mfm_fops =
 {
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* poll */
-	mfm_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	mfm_open,		/* open */
-	NULL,			/* flush */
-	mfm_release,		/* release */
-	block_fsync,		/* fsync */
-	NULL,			/* fasync */
-	NULL,			/* check_media_change */
-	NULL			/* revalidate */
+	open:		mfm_open,
+	release:	mfm_release,
+	ioctl:		mfm_ioctl,
 };
 
 

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