* cpqarray patches for 2.6 [5 of 5]
@ 2004-03-16 16:49 mikem
2004-03-16 17:39 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: mikem @ 2004-03-16 16:49 UTC (permalink / raw)
To: axboe, akpm; +Cc: linux-kernel
This is patch 5 of 5. Please apply patches in order. All patches have been tested against 2.6.5-rc1.
Thanks,
mikem
-------------------------------------------------------------------------------
* Examines rc of pci_register_driver and returns
drivers/block/cpqarray.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
--- linux-2.6.1/drivers/block/cpqarray.c~cpqarray_pci_register_rc 2004-02-11 18:12:19.457511024 -0600
+++ linux-2.6.1-root/drivers/block/cpqarray.c 2004-02-11 18:22:06.566256928 -0600
@@ -318,9 +318,7 @@ MODULE_PARM(eisa, "1-8i");
*/
int __init cpqarray_init(void)
{
- if(cpqarray_init_step2() == 0) /* all the block dev num already used */
- return -ENODEV; /* or no controllers were found */
- return 0;
+ return (cpqarray_init_step2());
}
static void release_io_mem(ctlr_info_t *c)
@@ -559,18 +557,21 @@ static struct pci_driver cpqarray_pci_dr
};
/*
- * This is it. Find all the controllers and register them. I really hate
- * stealing all these major device numbers.
+ * This is it. Find all the controllers and register them.
* returns the number of block devices registered.
*/
int __init cpqarray_init_step2(void)
{
int num_cntlrs_reg = 0;
int i;
+ int rc = 0;
/* detect controllers */
printk(DRIVER_NAME "\n");
- pci_register_driver(&cpqarray_pci_driver);
+/* TODO: If it's an eisa only system, will rc return negative? */
+ rc = pci_register_driver(&cpqarray_pci_driver);
+ if (rc < 0)
+ return rc;
cpqarray_eisa_detect();
for (i=0; i < MAX_CTLR; i++) {
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cpqarray patches for 2.6 [5 of 5]
2004-03-16 16:49 cpqarray patches for 2.6 [5 of 5] mikem
@ 2004-03-16 17:39 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2004-03-16 17:39 UTC (permalink / raw)
To: mike.miller; +Cc: axboe, akpm, linux-kernel
Patches 3 and 5 look OK.
I never received patch 1 and 2 from LKML, but most likely not your fault...
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-16 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-16 16:49 cpqarray patches for 2.6 [5 of 5] mikem
2004-03-16 17:39 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox