[PATCH 2.5.60 7/9] Update the GSC-Bus parallel port driver for new module API.

From: Bob Miller (rem@osdl.org)
Date: Fri Feb 14 2003 - 18:56:19 EST


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

-- 
Bob Miller					Email: rem@osdl.org
Open Source Development Lab			Phone: 503.626.2455 Ext. 17

diff -Nru a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c --- a/drivers/parport/parport_gsc.c Fri Feb 14 09:50:44 2003 +++ b/drivers/parport/parport_gsc.c Fri Feb 14 09:50:44 2003 @@ -190,14 +190,14 @@ parport_writeb (s->u.pc.ctr, CONTROL (p)); } -void parport_gsc_inc_use_count(void) +int parport_gsc_inc_use_count(void) { - MOD_INC_USE_COUNT; + return try_module_get(THIS_MODULE); } void parport_gsc_dec_use_count(void) { - MOD_DEC_USE_COUNT; + module_put(THIS_MODULE); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:59 EST