2003-02-14 23:49:44

by Bob Miller

[permalink] [raw]
Subject: [PATCH 2.5.60 8/9] Update the Multiface 3 parallel port driver for new module API.

The patch below updates the Multiface 3 parallel port driver to use the
new module interfaces. This hasn't been test (sorry no hardware).


--
Bob Miller Email: [email protected]
Open Source Development Lab Phone: 503.626.2455 Ext. 17

diff -Nru a/drivers/parport/parport_mfc3.c b/drivers/parport/parport_mfc3.c
--- a/drivers/parport/parport_mfc3.c Fri Feb 14 09:50:44 2003
+++ b/drivers/parport/parport_mfc3.c Fri Feb 14 09:50:44 2003
@@ -281,14 +281,14 @@
pia(p)->cra |= PIA_DDR;
}

-static void mfc3_inc_use_count(void)
+static int mfc3_inc_use_count(void)
{
- MOD_INC_USE_COUNT;
+ return try_module_get(THIS_MODULE);
}

static void mfc3_dec_use_count(void)
{
- MOD_DEC_USE_COUNT;
+ module_put(THIS_MODULE);
}

static struct parport_operations pp_mfc3_ops = {