diff options
author | David Miller <davem@davemloft.net> | 2007-08-24 22:25:58 -0700 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-09-25 20:55:02 -0500 |
commit | ff4abd6cfacf0bb23a077f615d3a5cd17359db1b (patch) | |
tree | 1bb3b58b7e18e568915ac34741fe9bcfc6442cd5 /drivers | |
parent | 2302827c95fe0f441025acd5133e532d2eef322b (diff) | |
download | kernel_samsung_aries-ff4abd6cfacf0bb23a077f615d3a5cd17359db1b.zip kernel_samsung_aries-ff4abd6cfacf0bb23a077f615d3a5cd17359db1b.tar.gz kernel_samsung_aries-ff4abd6cfacf0bb23a077f615d3a5cd17359db1b.tar.bz2 |
[SCSI] esp: fix instance numbering.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/esp_scsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 77b06a9..95cf7b6 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -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); |