From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Date: Fri, 1 Jul 2011 18:33:08 +0000 (+0400)
Subject: ssb: use pci_dev->revision
X-Git-Tag: firefly_0821_release~3680^2~4429^2~12^2~42^2~250
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2fa2319027dd498edde332afe9a27f1b34b34d7f;p=firefly-linux-kernel-4.4.55.git

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>
---

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,
 			     &bi->vendor);
 	pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_ID,
 			     &bi->type);
-	pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
-			     &bi->rev);
+	bi->rev = bus->host_pci->revision;
 }
 
 int ssb_pci_get_invariants(struct ssb_bus *bus,