Skip to contentSkip to conversation

Update the Amiga parallel port driver for new module API.

PATCH In review Bob Miller 1 participant 1 message Feb 14, 2003

lore
Share & tools
lore

Bob Miller

author
#0 lore raw

PATCH 4/9 Update the Amiga parallel port driver for new module API.

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

Signature · 24 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17

diff -Nru a/drivers/parport/parport_amiga.c b/drivers/parport/parport_amiga.c
--- a/drivers/parport/parport_amiga.c	Fri Feb 14 09:50:44 2003
+++ b/drivers/parport/parport_amiga.c	Fri Feb 14 09:50:44 2003
@@ -195,14 +195,14 @@
 	mb();
 }
 
-static void amiga_inc_use_count(void)
+static int amiga_inc_use_count(void)
 {
-	MOD_INC_USE_COUNT;
+	return try_module_get(THIS_MODULE);
 }
 
 static void amiga_dec_use_count(void)
 {
-	MOD_DEC_USE_COUNT;
+	module_put(THIS_MODULE);
 }
 
 static struct parport_operations pp_amiga_ops = {