lkml.org 
[lkml]   [2003]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.5.60 6/9] Update the Atari parallel port driver for new module API.
The patch below updates the Atari 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_atari.c b/drivers/parport/parport_atari.c
--- a/drivers/parport/parport_atari.c Fri Feb 14 09:50:44 2003
+++ b/drivers/parport/parport_atari.c Fri Feb 14 09:50:44 2003
@@ -147,16 +147,16 @@
#endif
}

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

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

static struct parport_operations parport_atari_ops = {
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.034 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site