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>
This commit is contained in:
Sergei Shtylyov 2011-07-01 22:33:08 +04:00 коммит произвёл John W. Linville
Родитель 73e6cdcf47
Коммит 2fa2319027
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

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