[SCSI] bnx2i: removed the individual PCI DEVICE ID checking
Removed the individual PCI DEVICE ID checking inside bnx2i. The device type can easily be read from the corresponding cnic->flags. This will free bnx2i from having to get updated for every new device ID that gets added. Signed-off-by: Eddie Wai <eddie.wai@broadcom.com> Acked-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
committed by
James Bottomley
parent
9a07da9f1f
commit
b83908ce84
@@ -808,7 +808,7 @@ struct bnx2i_hba *bnx2i_alloc_hba(struct cnic_dev *cnic)
|
||||
hba->pci_func = PCI_FUNC(hba->pcidev->devfn);
|
||||
hba->pci_devno = PCI_SLOT(hba->pcidev->devfn);
|
||||
|
||||
bnx2i_identify_device(hba);
|
||||
bnx2i_identify_device(hba, cnic);
|
||||
bnx2i_setup_host_queue_size(hba, shost);
|
||||
|
||||
hba->reg_base = pci_resource_start(hba->pcidev, 0);
|
||||
|
||||
Reference in New Issue
Block a user