diff options
author | Jon Mason <jdmason@kudzu.us> | 2011-06-27 07:46:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-27 21:40:45 -0700 |
commit | 1a10ccae9003826cee6f2c625fa4caf51cfc0f40 (patch) | |
tree | 4824912919e39be2cd26f85aba0470c0c7cd984f /drivers/net/bna | |
parent | e44daaded19baf8b7cf9ab3dedad8a01b8c49251 (diff) | |
download | blackbird-op-linux-1a10ccae9003826cee6f2c625fa4caf51cfc0f40.tar.gz blackbird-op-linux-1a10ccae9003826cee6f2c625fa4caf51cfc0f40.zip |
sky2: remove unnecessary reads of PCI_CAP_ID_EXP
The PCIE capability offset is saved during PCI bus walking. It will
remove an unnecessary search in the PCI configuration space if this
value is referenced instead of reacquiring it. Also, pci_is_pcie is a
better way of determining if the device is PCIE or not (as it uses the
same saved PCIE capability offset).
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bna')
0 files changed, 0 insertions, 0 deletions