mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
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: "David S. Miller" <[email protected]> Cc: Patrick McHardy <[email protected]> Cc: Bill Pemberton <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: [email protected] (open list:NETWORKING DRIVERS) Signed-off-by: David S. Miller <[email protected]>