]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ssb: use pci_dev->revision
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 23 Jun 2011 14:49:52 +0000 (18:49 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jun 2011 19:09:40 +0000 (15:09 -0400)
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>
drivers/ssb/scan.c

index 45e5babd3961110982c7c44e2ae4d988e4f86652..8047f9aaa4b202abb6419e5d51c282ea7563f64a 100644 (file)
@@ -310,8 +310,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
        } else {
                if (bus->bustype == SSB_BUSTYPE_PCI) {
                        bus->chip_id = pcidev_to_chipid(bus->host_pci);
-                       pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
-                                            &bus->chip_rev);
+                       bus->chip_rev = bus->host_pci->revision;
                        bus->chip_package = 0;
                } else {
                        bus->chip_id = 0x4710;