aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2011-07-01 14:33:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-05 15:32:23 -0400
commit2fa2319027dd498edde332afe9a27f1b34b34d7f (patch)
treed39cbed6eb8ab3b83bbd1eb03771da8c85ae7f0a /drivers
parent73e6cdcf479ce3a8d33a726f0477473db35a4b2e (diff)
ssb: use pci_dev->revision
The SSB code reads PCI revision ID from the PCI configuration register while it's already stored by the 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')
-rw-r--r--drivers/ssb/pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
index 52b1ceb748c7..3e36722b2ce2 100644
--- a/drivers/ssb/pci.c
+++ b/drivers/ssb/pci.c
@@ -738,8 +738,7 @@ static void ssb_pci_get_boardinfo(struct ssb_bus *bus,
738 &bi->vendor); 738 &bi->vendor);
739 pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_ID, 739 pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_ID,
740 &bi->type); 740 &bi->type);
741 pci_read_config_byte(bus->host_pci, PCI_REVISION_ID, 741 bi->rev = bus->host_pci->revision;
742 &bi->rev);
743} 742}
744 743
745int ssb_pci_get_invariants(struct ssb_bus *bus, 744int ssb_pci_get_invariants(struct ssb_bus *bus,