bnx2x: Combine get_pcie_width and get_pcie_speed
authorEilon Greenstein <eilong@broadcom.com>
Wed, 12 Aug 2009 08:23:34 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 06:02:50 +0000 (23:02 -0700)
commit37f9ce6231cafb2973e09f7f72ad62bc6348d1b3
tree1f2c37ef98e3d9528dcf8a215c64de7fcfa0aa2a
parente3553b29c6f395c6692afccc2ed5eff9c3d1daef
bnx2x: Combine get_pcie_width and get_pcie_speed

The functions bnx2x_get_pcie_width() and bnx2x_get_pcie_speed() were
combined into bnx2x_get_pcie_width_speed() so that there is only
1 PCI read to PCICFG_OFFSET + PCICFG_LINK_CONTROL rather then 2 reads.

Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c