PCI: Use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM)
authorYijing Wang <wangyijing@huawei.com>
Tue, 18 Jun 2013 08:22:14 +0000 (16:22 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Jun 2013 18:05:34 +0000 (12:05 -0600)
commit728cdb7582a230234795619036d887d7f52bce1e
tree0de33c16dddda3b7e94d3657d27150ee20c24201
parentfc6504b3a4dc9beae782a11e6f7c3c4a9f077fb8
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>
drivers/pci/pci.c
drivers/pci/quirks.c