From: Bob Miller <rem@osdl.org>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2.5.60 9/9] Update the Sun parallel port driver for new module API.
Date: Fri, 14 Feb 2003 15:58:12 -0800 [thread overview]
Message-ID: <20030214235812.GL13336@doc.pdx.osdl.net> (raw)
The patch below updates the Sun architecture 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_sunbpp.c b/drivers/parport/parport_sunbpp.c
--- a/drivers/parport/parport_sunbpp.c Fri Feb 14 09:50:44 2003
+++ b/drivers/parport/parport_sunbpp.c Fri Feb 14 09:50:44 2003
@@ -249,18 +249,14 @@
parport_sunbpp_write_control(p, s->u.pc.ctr);
}
-static void parport_sunbpp_inc_use_count(void)
+static int parport_sunbpp_inc_use_count(void)
{
-#ifdef MODULE
- MOD_INC_USE_COUNT;
-#endif
+ return try_module_get(THIS_MODULE);
}
static void parport_sunbpp_dec_use_count(void)
{
-#ifdef MODULE
- MOD_DEC_USE_COUNT;
-#endif
+ module_put(THIS_MODULE);
}
static struct parport_operations parport_sunbpp_ops =
reply other threads:[~2003-02-14 23:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030214235812.GL13336@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®