Re: [PATCH 4/9] bnx2: use pdev->pm_cap instead ofpci_find_capability(..,PCI_CAP_ID_PM)

From: David Miller
Date: Thu Jun 20 2013 - 01:24:30 EST

From: Yijing Wang <wangyijing@xxxxxxxxxx>
Date: Tue, 18 Jun 2013 16:12:37 +0800

> 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 <wangyijing@xxxxxxxxxx>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at