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. Tested-by: Lindar Liu <[email protected]> Signed-off-by: Yijing Wang <[email protected]> Acked-by: Lindar Liu <[email protected]> Signed-off-by: James Bottomley <[email protected]>