patch-2.3.38 linux/drivers/block/paride/pd.c

Next file: linux/drivers/block/paride/pf.c
Previous file: linux/drivers/block/nbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/block/paride/pd.c linux/drivers/block/paride/pd.c
@@ -354,21 +354,12 @@
         NULL            /* next */
 };
 
-static struct file_operations pd_fops = {
-        NULL,                   /* lseek - default */
-        block_read,             /* read - general block-dev read */
-        block_write,            /* write - general block-dev write */
-        NULL,                   /* readdir - bad */
-        NULL,                   /* select */
-        pd_ioctl,               /* ioctl */
-        NULL,                   /* mmap */
-        pd_open,                /* open */
-	NULL,			/* flush */
-        pd_release,             /* release */
-        block_fsync,            /* fsync */
-        NULL,                   /* fasync */
-        pd_check_media,         /* media change ? */
-        pd_revalidate           /* revalidate new media */
+static struct block_device_operations pd_fops = {
+        open:			pd_open,
+        release:		pd_release,
+        ioctl:			pd_ioctl,
+        check_media_change:	pd_check_media,
+        revalidate:		pd_revalidate
 };
 
 void pd_init_units( void )

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