[SCSI] ibmvscsi: handle inactive SCSI target during probe
authorDave C Boutcher <boutcher@cs.umn.edu>
Fri, 7 Jul 2006 03:08:49 +0000 (22:08 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 9 Jul 2006 16:28:58 +0000 (11:28 -0500)
Without this patch we register an interrupt with request_irq,
but then return a bad return code from the module probe.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ibmvscsi/rpa_vscsi.c

index 242b8873b33363c26692db97cc36218d5aed378e..ed22b96580c6622debcacf3b51978c9acc5a2d77 100644 (file)
@@ -238,6 +238,7 @@ int ibmvscsi_init_crq_queue(struct crq_queue *queue,
        if (rc == 2) {
                /* Adapter is good, but other end is not ready */
                printk(KERN_WARNING "ibmvscsi: Partner adapter not ready\n");
+               retrc = 0;
        } else if (rc != 0) {
                printk(KERN_WARNING "ibmvscsi: Error %d opening adapter\n", rc);
                goto reg_crq_failed;