patch-2.1.110 linux/drivers/misc/parport_ax.c

Next file: linux/drivers/misc/parport_ieee1284.c
Previous file: linux/drivers/misc/parport_arc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/drivers/misc/parport_ax.c linux/drivers/misc/parport_ax.c
@@ -300,6 +300,16 @@
 #endif
 }
 
+static void parport_ax_fill_inode(struct inode *inode, int fill)
+{
+#ifdef MODULE
+	if (fill)
+		MOD_INC_USE_COUNT;
+	else
+		MOD_DEC_USE_COUNT;
+#endif
+}
+
 static struct parport_operations parport_ax_ops = 
 {
 	parport_ax_write_data,
@@ -345,7 +355,8 @@
 	parport_ax_examine_irq,
 
 	parport_ax_inc_use_count,
-	parport_ax_dec_use_count
+	parport_ax_dec_use_count,
+	parport_ax_fill_inode
 };
 
 

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