Skip to content

Commit

Permalink
ssb: use pci_dev->revision
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sergei Shtylyov authored and John W. Linville committed Jul 5, 2011
1 parent 73e6cdc commit 2fa2319
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ssb/pci.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 2fa2319

Please sign in to comment.