]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4: use pci_dev->revision
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 23 Jun 2011 04:44:30 +0000 (04:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 15 Dec 2011 01:20:15 +0000 (09:20 +0800)
commit03fe39c58f7fb82bc5a4ade7c50aaba33d1f43fa
tree0932692e5665338f4374710edc73c4cf2d1dc3ca
parent69558073e2e34269a6070195cfdaec4eca30add2
mlx4: use pci_dev->revision

Commit 725c89997e03d71b09ea3c17c997da0712b9d835 (mlx4_en: Reporting HW revision
in ethtool -i) added code to read the revision ID from the PCI configuration
register while it's already stored by PCI subsystem in the 'revision' field of
'struct pci_dev'...

While at it, move the code being changed a bit in order to not break the
initialization sequence.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit aca7a3acb19a7a4b1084f6f2411f6eaf52dd79c0)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/mlx4/main.c