From: Bob Miller <rem@osdl.org>
To: linux-kernel@vger.kernel.org
Subject: [Trivial 2.5.66] Remove MOD_*_USE_COUNT from floppy driver.
Date: Tue, 1 Apr 2003 08:49:18 -0800 [thread overview]
Message-ID: <20030401164918.GA11907@doc.pdx.osdl.net> (raw)
By registering with genhd the floppy driver no longer needs
to manage its own module use count.
--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
diff -Nru a/drivers/block/floppy.c b/drivers/block/floppy.c
--- a/drivers/block/floppy.c Fri Mar 28 10:55:41 2003
+++ b/drivers/block/floppy.c Fri Mar 28 10:55:41 2003
@@ -4396,11 +4396,9 @@
return 0;
}
spin_unlock_irqrestore(&floppy_usage_lock, flags);
- MOD_INC_USE_COUNT;
if (fd_request_irq()) {
DPRINT("Unable to grab IRQ%d for the floppy driver\n",
FLOPPY_IRQ);
- MOD_DEC_USE_COUNT;
spin_lock_irqsave(&floppy_usage_lock, flags);
usage_count--;
spin_unlock_irqrestore(&floppy_usage_lock, flags);
@@ -4410,7 +4408,6 @@
DPRINT("Unable to grab DMA%d for the floppy driver\n",
FLOPPY_DMA);
fd_free_irq();
- MOD_DEC_USE_COUNT;
spin_lock_irqsave(&floppy_usage_lock, flags);
usage_count--;
spin_unlock_irqrestore(&floppy_usage_lock, flags);
@@ -4459,7 +4456,6 @@
release_region(FDCS->address + 2, 4);
release_region(FDCS->address + 7, 1);
}
- MOD_DEC_USE_COUNT;
spin_lock_irqsave(&floppy_usage_lock, flags);
usage_count--;
spin_unlock_irqrestore(&floppy_usage_lock, flags);
@@ -4527,7 +4523,6 @@
release_region(FDCS->address+7, 1);
}
fdc = old_fdc;
- MOD_DEC_USE_COUNT;
}
reply other threads:[~2003-04-01 16:37 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=20030401164918.GA11907@doc.pdx.osdl.net \
--to=rem@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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®