diff options
author | James.Smart@Emulex.Com <James.Smart@Emulex.Com> | 2005-11-28 15:08:56 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-12-13 20:35:50 -0500 |
commit | fefcb2b677fbfce894133e59a34395f8988d4610 (patch) | |
tree | 59115b4389dc04bfcd2f011360aa98597943c3ad /drivers/scsi | |
parent | 445cf4f4d2aa28f6ddd1d7a5f0986341ad61ec91 (diff) |
[SCSI] lpfc 8.1.1 : kill use of pci_read_config_xxx
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index db3c2ad4e941..b7a603a45328 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -763,14 +763,12 @@ static void | |||
763 | lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | 763 | lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) |
764 | { | 764 | { |
765 | lpfc_vpd_t *vp; | 765 | lpfc_vpd_t *vp; |
766 | uint16_t dev_id; | 766 | uint16_t dev_id = phba->pcidev->device; |
767 | uint16_t dev_subid; | 767 | uint16_t dev_subid = phba->pcidev->subsystem_device; |
768 | uint8_t hdrtype; | 768 | uint8_t hdrtype = phba->pcidev->hdr_type; |
769 | char *model_str = ""; | 769 | char *model_str = ""; |
770 | 770 | ||
771 | vp = &phba->vpd; | 771 | vp = &phba->vpd; |
772 | pci_read_config_word(phba->pcidev, PCI_DEVICE_ID, &dev_id); | ||
773 | pci_read_config_byte(phba->pcidev, PCI_HEADER_TYPE, &hdrtype); | ||
774 | 772 | ||
775 | switch (dev_id) { | 773 | switch (dev_id) { |
776 | case PCI_DEVICE_ID_FIREFLY: | 774 | case PCI_DEVICE_ID_FIREFLY: |
@@ -871,8 +869,6 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | |||
871 | break; | 869 | break; |
872 | case PCI_DEVICE_ID_LP11000S: | 870 | case PCI_DEVICE_ID_LP11000S: |
873 | case PCI_DEVICE_ID_LPE11000S: | 871 | case PCI_DEVICE_ID_LPE11000S: |
874 | pci_read_config_word(phba->pcidev, PCI_SUBSYSTEM_ID, | ||
875 | &dev_subid); | ||
876 | switch (dev_subid) { | 872 | switch (dev_subid) { |
877 | case PCI_SUBSYSTEM_ID_LP11000S: | 873 | case PCI_SUBSYSTEM_ID_LP11000S: |
878 | model_str = "LP11002-S 4Gb PCI-X2"; | 874 | model_str = "LP11002-S 4Gb PCI-X2"; |