commit | 728cdb7582a230234795619036d887d7f52bce1e | [log] [tgz] |
---|---|---|
author | Yijing Wang <wangyijing@huawei.com> | Tue Jun 18 16:22:14 2013 +0800 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Tue Jun 18 12:05:34 2013 -0600 |
tree | 0de33c16dddda3b7e94d3657d27150ee20c24201 | |
parent | fc6504b3a4dc9beae782a11e6f7c3c4a9f077fb8 [diff] |
PCI: Use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM) PCI PM cap register offset has been saved in pci_pm_init(), so we can use pdev->pm_cap instead of using pci_find_capability(..) here. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>