Commit 115f9450 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by John W. Linville

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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2fa23190
...@@ -734,10 +734,8 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus, ...@@ -734,10 +734,8 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,
static void ssb_pci_get_boardinfo(struct ssb_bus *bus, static void ssb_pci_get_boardinfo(struct ssb_bus *bus,
struct ssb_boardinfo *bi) struct ssb_boardinfo *bi)
{ {
pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_VENDOR_ID, bi->vendor = bus->host_pci->subsystem_vendor;
&bi->vendor); bi->type = bus->host_pci->subsystem_device;
pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_ID,
&bi->type);
bi->rev = bus->host_pci->revision; bi->rev = bus->host_pci->revision;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment