patch-2.3.43 linux/drivers/sgi/char/shmiq.c

Next file: linux/drivers/sgi/char/streamable.c
Previous file: linux/drivers/sgi/char/graphics.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/sgi/char/shmiq.c linux/drivers/sgi/char/shmiq.c
@@ -429,21 +429,14 @@
 }
 
 
-static struct
-file_operations shmiq_fops =
+static struct file_operations shmiq_fops =
 {
-        NULL,                   /* seek */
-        NULL,                   /* read */
-        NULL,                   /* write */
-        NULL,                   /* readdir */
-        shmiq_qcntl_poll,       /* poll */
-        shmiq_qcntl_ioctl,      /* ioctl */
-        shmiq_qcntl_mmap,       /* mmap */
-        shmiq_qcntl_open,       /* open */
-	NULL,			/* flush */
-        shmiq_qcntl_close,      /* close */
-        NULL,                   /* fsync */
-        shmiq_qcntl_fasync,     /* fasync */
+	poll:		shmiq_qcntl_poll,
+	ioctl:		shmiq_qcntl_ioctl,
+	mmap:		shmiq_qcntl_mmap,
+	open:		shmiq_qcntl_open,
+	release:	shmiq_qcntl_close,
+	fasync:		shmiq_qcntl_fasync,
 };
 
 void

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