* [PATCH 2.5.60 4/9] Update the Amiga parallel port driver for new module API.
@ 2003-02-14 23:51 Bob Miller
0 siblings, 0 replies; 2+ messages in thread
From: Bob Miller @ 2003-02-14 23:51 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
The patch below updates the Amiga 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_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 = {
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2.5.60 4/9] Update the Amiga parallel port driver for new module API.
@ 2003-02-14 23:48 Bob Miller
0 siblings, 0 replies; 2+ messages in thread
From: Bob Miller @ 2003-02-14 23:48 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
The patch below updates the Amiga 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_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 = {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-14 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 23:51 [PATCH 2.5.60 4/9] Update the Amiga parallel port driver for new module API Bob Miller
-- strict thread matches above, loose matches on Subject: below --
2003-02-14 23:48 Bob Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®