aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorVladislav Zolotarov <vladz@broadcom.com>2011-07-23 23:58:38 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-24 16:11:40 -0400
commitb6c2f86e6305be612f1196459f22343523f7049f (patch)
tree63efc504390b95d4269ade5781db6f99ba38aa98 /drivers/net
parentb1fb8740a279a96d8b6ceedfce334b887908b91d (diff)
bnx2x: use pci_pcie_cap()
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index e5d5d4fb1de5..150709111548 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -5652,7 +5652,7 @@ static void bnx2x_init_pxp(struct bnx2x *bp)
5652 int r_order, w_order; 5652 int r_order, w_order;
5653 5653
5654 pci_read_config_word(bp->pdev, 5654 pci_read_config_word(bp->pdev,
5655 bp->pdev->pcie_cap + PCI_EXP_DEVCTL, &devctl); 5655 pci_pcie_cap(bp->pdev) + PCI_EXP_DEVCTL, &devctl);
5656 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl); 5656 DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl);
5657 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5); 5657 w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5);
5658 if (bp->mrrs == -1) 5658 if (bp->mrrs == -1)