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

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

diff -u --recursive --new-file v2.1.109/linux/drivers/misc/parport_pc.c linux/drivers/misc/parport_pc.c
@@ -261,6 +261,16 @@
 #endif
 }
 
+static void parport_pc_fill_inode(struct inode *inode, int fill)
+{
+#ifdef MODULE
+	if (fill)
+		MOD_INC_USE_COUNT;
+	else
+		MOD_DEC_USE_COUNT;
+#endif
+}
+
 struct parport_operations parport_pc_ops = 
 {
 	parport_pc_write_data,
@@ -306,7 +316,8 @@
 	parport_pc_examine_irq,
 
 	parport_pc_inc_use_count,
-	parport_pc_dec_use_count
+	parport_pc_dec_use_count,
+	parport_pc_fill_inode
 };
 
 /* --- Mode detection ------------------------------------- */

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