ssb: PCI revision ID register is 8-bit wide
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 1 Jul 2011 18:35:28 +0000 (22:35 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jul 2011 19:26:55 +0000 (15:26 -0400)
commit304e21bbeab0d208dc7e6142fb75db8a466d5217
tree833e5912fdbc6314ff4292b9393ca60ee46e612e
parent45a771385ceb644941b195f37ab98f7db39776bd
ssb: PCI revision ID register is 8-bit wide

The SSB code reads PCI revision ID register as 16-bit entity while the register
is actually 8-bit only (the next 8 bits are the programming interface register).
Fix the read and make the 'rev' field of 'struct ssb_boardinfo' 8-bit as well,
to match the register size.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/pci.c
include/linux/ssb/ssb.h