diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 4a855a9c7126..18471ede7f80 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -112,6 +112,7 @@ static struct beiscsi_hba *beiscsi_hba_alloc(struct pci_dev *pcidev) | |||
112 | memset(phba, 0, sizeof(*phba)); | 112 | memset(phba, 0, sizeof(*phba)); |
113 | phba->shost = shost; | 113 | phba->shost = shost; |
114 | phba->pcidev = pci_dev_get(pcidev); | 114 | phba->pcidev = pci_dev_get(pcidev); |
115 | pci_set_drvdata(pcidev, phba); | ||
115 | 116 | ||
116 | if (iscsi_host_add(shost, &phba->pcidev->dev)) | 117 | if (iscsi_host_add(shost, &phba->pcidev->dev)) |
117 | goto free_devices; | 118 | goto free_devices; |
@@ -3734,7 +3735,6 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev, | |||
3734 | } | 3735 | } |
3735 | SE_DEBUG(DBG_LVL_8, " phba = %p \n", phba); | 3736 | SE_DEBUG(DBG_LVL_8, " phba = %p \n", phba); |
3736 | 3737 | ||
3737 | pci_set_drvdata(pcidev, phba); | ||
3738 | if (enable_msix) | 3738 | if (enable_msix) |
3739 | num_cpus = find_num_cpus(); | 3739 | num_cpus = find_num_cpus(); |
3740 | else | 3740 | else |