patch-2.1.118 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

diff -u --recursive --new-file v2.1.117/linux/drivers/ap1000/ap.c linux/drivers/ap1000/ap.c
@@ -48,12 +48,10 @@
 
 static volatile int request_count = 0;
 
-#ifdef MODULE
 static void ap_release(struct inode * inode, struct file * filp)
 {
 	MOD_DEC_USE_COUNT;
 }
-#endif
 
 static void ap_request(void)
 {
@@ -247,20 +245,17 @@
 } 
 
 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 */
-#ifndef MODULE
-	NULL,		/* no special release code... */
-#else
-	ap_release,	/* module needs to decrement use count */
-#endif
-        block_fsync,            /* fsync */
+	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 */
 };
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov