IB/qib: Use pci_dev->revision
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 10 May 2011 05:07:31 +0000 (22:07 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 12 May 2011 15:57:12 +0000 (08:57 -0700)
commit1c65335714e99864a438b0d757c8736d3c6e7d79
treea9649fad2ab06f130ef4ae17731034ddd9ba8825
parentec03d6777a9e2b76917ef6d3fc8a01e174bcb9b1
IB/qib: Use pci_dev->revision

The driver reads PCI revision ID from the PCI configuration register
while it's already stored by PCI subsystem in the revision field of
struct pci_dev.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_pcie.c