diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-31 16:12:40 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-31 16:12:40 -0400 |
commit | 33de1b8bf6e11a3bc69faf2f7ffb3692c723bdf5 (patch) | |
tree | 5e92465442ad3166ba1c9bd423c20d67b018d1e0 /drivers/pci/pci-driver.c | |
parent | cc17a67c0762a6030b43e98d775a12a99e5ff247 (diff) | |
parent | 0394cb192db4397753046775a8caa736397737b5 (diff) |
Merge branch 'pci/misc' into next
* pci/misc:
PCI: Report pci_pme_active() kmalloc failure
mn10300/PCI: Remove useless pcibios_last_bus
frv/PCI: Remove pcibios_last_bus
PCI: Fail MSI/MSI-X initialization if device is not in PCI_D0
x86/PCI: Coalesce multiple overlapping host bridge windows
MAINTAINERS: Add arch/x86/pci to PCI file patterns
PCI/PM: Remove pci_pm_complete()
PCI: Add pci_dev_show_local_cpu() to simplify code
mn10300/PCI: Remove unused pci_mem_start
cris/PCI: Remove unused pci_mem_start
PCI: Make pci_dev_pm_ops static
Conflicts:
drivers/pci/pci-sysfs.c
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 9f85960a62ed..840fdc5ba0d8 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -602,18 +602,10 @@ static int pci_pm_prepare(struct device *dev) | |||
602 | return error; | 602 | return error; |
603 | } | 603 | } |
604 | 604 | ||
605 | static void pci_pm_complete(struct device *dev) | ||
606 | { | ||
607 | struct device_driver *drv = dev->driver; | ||
608 | |||
609 | if (drv && drv->pm && drv->pm->complete) | ||
610 | drv->pm->complete(dev); | ||
611 | } | ||
612 | 605 | ||
613 | #else /* !CONFIG_PM_SLEEP */ | 606 | #else /* !CONFIG_PM_SLEEP */ |
614 | 607 | ||
615 | #define pci_pm_prepare NULL | 608 | #define pci_pm_prepare NULL |
616 | #define pci_pm_complete NULL | ||
617 | 609 | ||
618 | #endif /* !CONFIG_PM_SLEEP */ | 610 | #endif /* !CONFIG_PM_SLEEP */ |
619 | 611 | ||
@@ -1124,9 +1116,8 @@ static int pci_pm_runtime_idle(struct device *dev) | |||
1124 | 1116 | ||
1125 | #ifdef CONFIG_PM | 1117 | #ifdef CONFIG_PM |
1126 | 1118 | ||
1127 | const struct dev_pm_ops pci_dev_pm_ops = { | 1119 | static const struct dev_pm_ops pci_dev_pm_ops = { |
1128 | .prepare = pci_pm_prepare, | 1120 | .prepare = pci_pm_prepare, |
1129 | .complete = pci_pm_complete, | ||
1130 | .suspend = pci_pm_suspend, | 1121 | .suspend = pci_pm_suspend, |
1131 | .resume = pci_pm_resume, | 1122 | .resume = pci_pm_resume, |
1132 | .freeze = pci_pm_freeze, | 1123 | .freeze = pci_pm_freeze, |