diff options
author | Jamie Wellnitz <Jamie.Wellnitz@emulex.com> | 2006-02-28 19:25:24 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-28 19:58:02 -0500 |
commit | 7f0b5b1913ba20ae035adbaeca176e78a53fa7a8 (patch) | |
tree | 9919be31d3cf0cef742536aec9cf885883848184 /drivers/scsi/lpfc/lpfc_init.c | |
parent | c9f8735beadfba403045c4423c91bbcf594b6ef2 (diff) |
[SCSI] lpfc 8.1.2: Correct use of the hostdata field in scsi_host
Correct use of the hostdata field in scsi_host
Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 369487e8f450..5e92c451f96e 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -1553,7 +1553,6 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) | |||
1553 | INIT_LIST_HEAD(&phba->lpfc_scsi_buf_list); | 1553 | INIT_LIST_HEAD(&phba->lpfc_scsi_buf_list); |
1554 | 1554 | ||
1555 | host->transportt = lpfc_transport_template; | 1555 | host->transportt = lpfc_transport_template; |
1556 | host->hostdata[0] = (unsigned long)phba; | ||
1557 | pci_set_drvdata(pdev, host); | 1556 | pci_set_drvdata(pdev, host); |
1558 | error = scsi_add_host(host, &pdev->dev); | 1557 | error = scsi_add_host(host, &pdev->dev); |
1559 | if (error) | 1558 | if (error) |
@@ -1675,7 +1674,7 @@ static void __devexit | |||
1675 | lpfc_pci_remove_one(struct pci_dev *pdev) | 1674 | lpfc_pci_remove_one(struct pci_dev *pdev) |
1676 | { | 1675 | { |
1677 | struct Scsi_Host *host = pci_get_drvdata(pdev); | 1676 | struct Scsi_Host *host = pci_get_drvdata(pdev); |
1678 | struct lpfc_hba *phba = (struct lpfc_hba *)host->hostdata[0]; | 1677 | struct lpfc_hba *phba = (struct lpfc_hba *)host->hostdata; |
1679 | unsigned long iflag; | 1678 | unsigned long iflag; |
1680 | 1679 | ||
1681 | lpfc_free_sysfs_attr(phba); | 1680 | lpfc_free_sysfs_attr(phba); |