projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1fb874
)
bnx2x: use pci_pcie_cap()
author
Vladislav Zolotarov
<
[email protected]
>
Sun, 24 Jul 2011 03:58:38 +0000
(
03:58
+0000)
committer
David S. Miller
<
[email protected]
>
Sun, 24 Jul 2011 20:11:40 +0000
(13:11 -0700)
Signed-off-by: Dmitry Kravkov <
[email protected]
>
Signed-off-by: Vladislav Zolotarov <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_main.c
b/drivers/net/bnx2x/bnx2x_main.c
index e5d5d4fb1de56e1afbde05eb60d2f9318996d77b..15070911154833d4e83582fe68dba67bd9e32f73 100644
(file)
--- 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)
int r_order, w_order;
pci_read_config_word(bp->pdev,
-
bp->pdev->pcie_cap
+ PCI_EXP_DEVCTL, &devctl);
+
pci_pcie_cap(bp->pdev)
+ PCI_EXP_DEVCTL, &devctl);
DP(NETIF_MSG_HW, "read 0x%x from devctl\n", devctl);
w_order = ((devctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5);
if (bp->mrrs == -1)