]> git.hungrycats.org Git - linux/commitdiff
[PATCH] make sym2 scan devices again
authorChristoph Hellwig <hch@lst.de>
Sun, 10 Aug 2003 05:31:44 +0000 (00:31 -0500)
committerJames Bottomley <jejb@jet.(none)>
Sun, 10 Aug 2003 05:31:44 +0000 (00:31 -0500)
It needs a call to scsi_scan_host to find devices.  Also remove the
superflous scsi_set_device call - scsi_add_host does that for us.

drivers/scsi/sym53c8xx_2/sym_glue.c

index b46ec32b6aed5c4c5333086d97aa52a006decc8a..7498d20f8c28870046896523b6f099e8b0f95303 100644 (file)
@@ -2015,17 +2015,17 @@ sym_attach (struct scsi_host_template *tpnt, int unit, sym_device *dev)
 
        SYM_UNLOCK_HCB(np, flags);
 
-       scsi_set_device(instance, &dev->pdev->dev);
-
        /*
         *  Now let the generic SCSI driver
         *  look for the SCSI devices on the bus ..
         */
-       scsi_add_host(instance, &dev->pdev->dev);
+       scsi_add_host(instance, &dev->pdev->dev); /* XXX: handle failure */
+       scsi_scan_host(instance);
        return 0;
 
 attach_failed:
-       if (!instance) return -1;
+       if (!instance)
+               return -1;
        printf_info("%s: giving up ...\n", sym_name(np));
        if (np)
                sym_free_resources(np);