aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssb/scan.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2011-06-23 10:49:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-27 15:09:40 -0400
commitce2dd3c2d54494195e8820b2432eb47ca61ebdd7 (patch)
tree066349739a97f4258089d4cf28fb8cacc30105de /drivers/ssb/scan.c
parent05b60d4e3796c25ae1c78b10d5676ab27062d9b4 (diff)
ssb: use pci_dev->revision
The bus scan code reads PCI revision ID from the PCI configuration register while it's already stored by PCI subsystem in the 'revision' field 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/scan.c')
-rw-r--r--drivers/ssb/scan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ssb/scan.c b/drivers/ssb/scan.c
index 45e5babd3961..8047f9aaa4b2 100644
--- a/drivers/ssb/scan.c
+++ b/drivers/ssb/scan.c
@@ -310,8 +310,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
310 } else { 310 } else {
311 if (bus->bustype == SSB_BUSTYPE_PCI) { 311 if (bus->bustype == SSB_BUSTYPE_PCI) {
312 bus->chip_id = pcidev_to_chipid(bus->host_pci); 312 bus->chip_id = pcidev_to_chipid(bus->host_pci);
313 pci_read_config_byte(bus->host_pci, PCI_REVISION_ID, 313 bus->chip_rev = bus->host_pci->revision;
314 &bus->chip_rev);
315 bus->chip_package = 0; 314 bus->chip_package = 0;
316 } else { 315 } else {
317 bus->chip_id = 0x4710; 316 bus->chip_id = 0x4710;