summaryrefslogtreecommitdiffstats
path: root/drivers/misc/parport_arc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/parport_arc.c')
-rw-r--r--drivers/misc/parport_arc.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/drivers/misc/parport_arc.c b/drivers/misc/parport_arc.c
index 932ecab8c..3a013b4cf 100644
--- a/drivers/misc/parport_arc.c
+++ b/drivers/misc/parport_arc.c
@@ -1,7 +1,6 @@
-/* $Id: parport_arc.c,v 1.1 1997/07/29 03:59:12 ralf Exp $
- * Parallel-port routines for ARC onboard hardware.
+/* Parallel-port routines for ARC onboard hardware.
*
- * Author: Phil Blundell <pjb27@cam.ac.uk>
+ * Author: Phil Blundell <Philip.Blundell@pobox.com>
*/
#include <linux/tasks.h>
@@ -37,6 +36,20 @@ static unsigned int arc_read_data(struct parport *p)
return data_copy;
}
+static void arc_inc_use_count(void)
+{
+#ifdef MODULE
+ MOD_INC_USE_COUNT;
+#endif
+}
+
+static void arc_dec_use_count(void)
+{
+#ifdef MODULE
+ MOD_DEC_USE_COUNT;
+#endif
+}
+
static struct parport_operations arc_ops =
{
arc_write_data,
@@ -72,5 +85,8 @@ static struct parport_operations arc_ops =
arc_enable_irq,
arc_disable_irq,
- arc_examine_irq
+ arc_examine_irq,
+
+ arc_inc_use_count,
+ arc_dec_use_count
};