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
- Lines: 27
- Date:
Sat Jul 18 14:16:03 1998
- Orig file:
v2.1.109/linux/drivers/misc/parport_arc.c
- Orig date:
Tue Jun 23 10:01:23 1998
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