patch-2.3.38 linux/drivers/ap1000/ddv.c

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

diff -u --recursive --new-file v2.3.37/linux/drivers/ap1000/ddv.c linux/drivers/ap1000/ddv.c
@@ -875,18 +875,10 @@
 	};
 }
 
-static struct file_operations ddv_fops = {
-        NULL,                   /* lseek - default */
-        block_read,         /* read */
-        block_write,        /* write */
-        NULL,                   /* readdir - bad */
-        NULL,                   /* poll */
-        ddv_ioctl,               /* ioctl */
-        NULL,                   /* mmap */
-        ddv_open,                /* open */
-	NULL,			/* flush */
-	ddv_release,
-        block_fsync          /* fsync */
+static struct block_device_operations ddv_fops = {
+        open:		ddv_open,
+	release:	ddv_release,
+        ioctl:		ddv_ioctl,
 };
 
 

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