From: Andrew Morton <andrewm@uow.edu.au>
To: Jeff Garzik <jgarzik@mandrakesoft.mandrakesoft.com>
Cc: Tim Waugh <twaugh@redhat.com>,
Linus Torvalds <torvalds@transmeta.com>,
linux-kernel@vger.kernel.org
Subject: Re: [patch] 2.4.2-pre3: parport_pc init_module bug
Date: Wed, 14 Feb 2001 22:21:38 +1100 [thread overview]
Message-ID: <3A8A6A42.66F727FA@uow.edu.au> (raw)
In-Reply-To: <20010213234349.O9459@redhat.com> <Pine.LNX.3.96.1010214020126.28011B-100000@mandrakesoft.mandrakesoft.com>
Jeff Garzik wrote:
>
> Bad patch. It should be
>
> if (r >= 0) {
> registered_parport = 1;
> if (r > 0)
> count += r;
> }
>
> If pci_register_driver returns < 0, the driver is not registered with
> the system.
eh?
pci_register_driver(struct pci_driver *drv)
{
struct pci_dev *dev;
int count = 0;
list_add_tail(&drv->node, &pci_drivers);
pci_for_each_dev(dev) {
if (!pci_dev_driver(dev))
count += pci_announce_device(drv, dev);
}
return count;
}
Maybe you're thinking of pci_module_init?
Now, if there were some actual COMMENTS (scary, I know) in the pci
code which described the API, stuff like this wouldn't happen.
-
next prev parent reply other threads:[~2001-02-14 11:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-13 23:43 Tim Waugh
2001-02-14 8:03 ` Jeff Garzik
2001-02-14 8:53 ` James Sutherland
2001-02-14 10:53 ` Tim Waugh
2001-02-14 11:14 ` Jeff Garzik
2001-02-14 11:18 ` Tim Waugh
2001-02-14 11:21 ` Andrew Morton [this message]
2001-02-14 11:17 ` Tim Waugh
2001-02-14 11:24 ` Jeff Garzik
2001-02-14 11:40 ` Philipp Rumpf
2001-02-14 17:25 ` Grant Grundler
2001-02-14 21:12 ` Philipp Rumpf
2001-02-15 2:26 ` Grant Grundler
2001-02-18 15:05 ` Jeff Garzik
2001-02-14 11:31 ` Philipp Rumpf
2001-02-14 11:17 ` Jeff Garzik
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=3A8A6A42.66F727FA@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=jgarzik@mandrakesoft.mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=twaugh@redhat.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®