]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] esp: fix instance numbering.
authorDavid Miller <davem@davemloft.net>
Sat, 25 Aug 2007 05:25:58 +0000 (22:25 -0700)
committerJames Bottomley <jejb@mulgrave.localdomain>
Wed, 26 Sep 2007 01:55:02 +0000 (20:55 -0500)
Because the ->unique_id is set too late, the ESP scsi host
instance numbers in the kernel log during probing are
wrong.

Bug reported by Meelis Roos.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/esp_scsi.c

index 77b06a983fa763023f245c010fb738616c7d18bc..95cf7b6cd6225043f7a13ef33939b118303cba1c 100644 (file)
@@ -2314,6 +2314,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev)
        esp->host->transportt = esp_transport_template;
        esp->host->max_lun = ESP_MAX_LUN;
        esp->host->cmd_per_lun = 2;
+       esp->host->unique_id = instance;
 
        esp_set_clock_params(esp);
 
@@ -2337,7 +2338,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev)
        if (err)
                return err;
 
-       esp->host->unique_id = instance++;
+       instance++;
 
        scsi_scan_host(esp->host);