]> www.infradead.org Git - users/jedix/linux-maple.git/commit
r8169: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:46:31 +0000 (07:46 +0000)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 02:01:51 +0000 (10:01 +0800)
commit86edc99aefcca7c2557f130ceed1ecaba3216023
tree547b4b741b9f76d7f01414444848ae223936871d
parentef27a11f427e9e6a2e15013718c6890aafac9200
r8169: remove unnecessary read of PCI_CAP_ID_EXP

The PCIE capability offset is saved during PCI bus walking.  Use the
value from pci_dev instead of checking in the driver and saving it off
the the driver specific structure.  Also, it will remove an unnecessary
search in the PCI configuration space if this value is referenced
instead of reacquiring it.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e44daaded19baf8b7cf9ab3dedad8a01b8c49251)

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