From: Bob Miller <rem@osdl.org>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2.5.60 4/9] Update the Amiga parallel port driver for new module API.
Date: Fri, 14 Feb 2003 15:51:47 -0800 [thread overview]
Message-ID: <20030214235146.GG13336@doc.pdx.osdl.net> (raw)
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 = {
next reply other threads:[~2003-02-14 23:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-14 23:51 Bob Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-14 23:48 Bob Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030214235146.GG13336@doc.pdx.osdl.net \
--to=rem@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®