]> Git Repo - linux.git/commit
bnx2: use pdev->pm_cap instead of pci_find_capability(.., PCI_CAP_ID_PM)
authorYijing Wang <[email protected]>
Tue, 18 Jun 2013 08:12:37 +0000 (16:12 +0800)
committerDavid S. Miller <[email protected]>
Thu, 20 Jun 2013 05:22:57 +0000 (22:22 -0700)
commit85768271315bd368c86a0783bf0c85019afbabec
tree84ea2d16fdafdf02de42c8eb72958d3c1527aa66
parentf9c7da5eaf10fa1d7a91b83aefc6fb8e3a4ad39c
bnx2: use pdev->pm_cap instead of pci_find_capability(.., PCI_CAP_ID_PM)

Pci core has been saved pm cap register offset by pdev->pm_cap in pci_pm_init()
in init path. So we can use pdev->pm_cap instead of using
pci_find_capability(pdev, PCI_CAP_ID_PM) for better performance and simplified code.

Signed-off-by: Yijing Wang <[email protected]>
Cc: Michael Chan <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/bnx2.c
This page took 0.055151 seconds and 4 git commands to generate.