patch-2.3.38 linux/drivers/ap1000/ap.c
Next file: linux/drivers/ap1000/ddv.c
Previous file: linux/drivers/acorn/block/mfmhd.c
Back to the patch index
Back to the overall index
-  Lines: 23
-  Date:
Fri Jan  7 11:38:05 2000
-  Orig file: 
v2.3.37/linux/drivers/ap1000/ap.c
-  Orig date: 
Tue Dec 14 01:27:23 1999
diff -u --recursive --new-file v2.3.37/linux/drivers/ap1000/ap.c linux/drivers/ap1000/ap.c
@@ -244,18 +244,10 @@
   wake_up(&busy_wait);  
 } 
 
-static struct file_operations ap_fops = {
-	NULL,                   /* lseek - default */
-	block_read,             /* read - general block-dev read */
-	block_write,            /* write - general block-dev write */
-	NULL,                   /* readdir - bad */
-	NULL,                   /* poll */
-	ap_ioctl,               /* ioctl */
-	NULL,                   /* mmap */
-	ap_open,                /* open */
-	NULL,			/* flush */
-	ap_release,		/* module needs to decrement use count */
-	block_fsync,            /* fsync */
+static struct block_device_operations ap_fops = {
+	open:		ap_open,
+	release:	ap_release,
+	ioctl:		ap_ioctl,
 };
 
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)