From: Domen Puncer <domen@coderock.org>
To: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
Cc: James.Bottomley@SteelEye.com, linux-scsi@vger.kernel.org,
c.lucas@ifrance.com
Subject: Re: [patch 06/11] drivers/scsi/aacraid/*: convert to pci_register_driver
Date: Tue, 15 Mar 2005 21:17:10 +0100 [thread overview]
Message-ID: <20050315201710.GG3955@nd47.coderock.org> (raw)
In-Reply-To: <60807403EABEB443939A5A7AA8A7458BE5B10B@otce2k01.adaptec.com>
On 15/03/05 12:59 -0500, Salyzyn, Mark wrote:
> FC3 != kernel.org, and the problem may not exist in latest tree. The
> code for pci_module_init used to do a return (ret < 0) ? ret : 0.
>
> The problem is then a 'transition' issue, as patches that appear here
> can and will be used for kernel revisions a few back. By changing the
> aacraid driver to check for < 0 rather than != 0 we improve reliability.
> I have discovered that by doing so, the driver in the Adaptec Branch
> taking this patch works fine all the way back early 2.4 trees.
>
Thanks for clearing that up.
Forgot that scsi is 2.4 compatible. And I have a note to drop
pci_register_driver patches for it. Sorry for all the noise.
So, here's a new patch, if someone wants it; i won't be resending :-)
Use pci_register_driver instead of pci_module_init (old API).
Signed-off-by: Domen Puncer <domen@coderock.org>
--- ./drivers/scsi/aacraid/linit.c.orig 2005-03-15 21:05:53.000000000 +0100
+++ ./drivers/scsi/aacraid/linit.c 2005-03-15 21:06:59.000000000 +0100
@@ -686,12 +686,12 @@ static struct pci_driver aac_pci_driver
static int __init aac_init(void)
{
int error;
-
+
printk(KERN_INFO "Red Hat/Adaptec aacraid driver (%s %s)\n",
AAC_DRIVER_VERSION, AAC_DRIVER_BUILD_DATE);
- error = pci_module_init(&aac_pci_driver);
- if (error)
+ error = pci_register_driver(&aac_pci_driver);
+ if (error < 0)
return error;
aac_cfg_major = register_chrdev( 0, "aac", &aac_cfg_fops);
next prev parent reply other threads:[~2005-03-15 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 17:59 [patch 06/11] drivers/scsi/aacraid/*: convert to pci_register_driver Salyzyn, Mark
2005-03-15 20:17 ` Domen Puncer [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-15 15:59 Salyzyn, Mark
2005-03-15 17:45 ` Domen Puncer
2005-03-15 13:38 Salyzyn, Mark
2005-03-15 15:57 ` Domen Puncer
2005-03-06 22:27 domen
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=20050315201710.GG3955@nd47.coderock.org \
--to=domen@coderock.org \
--cc=James.Bottomley@SteelEye.com \
--cc=c.lucas@ifrance.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mark_salyzyn@adaptec.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