diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2011-07-01 14:34:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-05 15:32:54 -0400 |
commit | 115f9450babbf2ed530db04e16a99df28cec85dd (patch) | |
tree | 15a8bd2786023879964864078bc4d68777054eea /drivers/ssb | |
parent | 2fa2319027dd498edde332afe9a27f1b34b34d7f (diff) |
ssb: use pci_dev->subsystem_{vendor,device}
The SSB code reads PCI subsystem IDs from the PCI configuration registers while
they are already stored by the PCI subsystem in the 'subsystem_{vendor|device}'
fields of 'struct pci_dev'...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/pci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c index 3e36722b2ce2..a00b35f03084 100644 --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c | |||
@@ -734,10 +734,8 @@ out_free: | |||
734 | static void ssb_pci_get_boardinfo(struct ssb_bus *bus, | 734 | static void ssb_pci_get_boardinfo(struct ssb_bus *bus, |
735 | struct ssb_boardinfo *bi) | 735 | struct ssb_boardinfo *bi) |
736 | { | 736 | { |
737 | pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_VENDOR_ID, | 737 | bi->vendor = bus->host_pci->subsystem_vendor; |
738 | &bi->vendor); | 738 | bi->type = bus->host_pci->subsystem_device; |
739 | pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_ID, | ||
740 | &bi->type); | ||
741 | bi->rev = bus->host_pci->revision; | 739 | bi->rev = bus->host_pci->revision; |
742 | } | 740 | } |
743 | 741 | ||