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

Next file: linux/drivers/misc/parport_ax.c
Previous file: linux/drivers/char/videodev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/drivers/misc/parport_arc.c linux/drivers/misc/parport_arc.c
@@ -58,6 +58,16 @@
 #endif
 }
 
+static void arc_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_arc_ops = 
 {
 	arc_write_data,
@@ -103,7 +113,8 @@
 	arc_examine_irq,
 
 	arc_inc_use_count,
-	arc_dec_use_count
+	arc_dec_use_count,
+	arc_fill_inode
 };
 
 /* --- Initialisation code -------------------------------- */

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