diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-31 14:12:40 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-31 14:12:40 -0600 |
commit | 33de1b8bf6e11a3bc69faf2f7ffb3692c723bdf5 (patch) | |
tree | 5e92465442ad3166ba1c9bd423c20d67b018d1e0 /drivers/pci/pci.c | |
parent | cc17a67c0762a6030b43e98d775a12a99e5ff247 (diff) | |
parent | 0394cb192db4397753046775a8caa736397737b5 (diff) | |
download | op-kernel-dev-33de1b8bf6e11a3bc69faf2f7ffb3692c723bdf5.zip op-kernel-dev-33de1b8bf6e11a3bc69faf2f7ffb3692c723bdf5.tar.gz |
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.c')
-rw-r--r-- | drivers/pci/pci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index c0805f2..457f801 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1638,8 +1638,10 @@ void pci_pme_active(struct pci_dev *dev, bool enable) if (enable) { pme_dev = kmalloc(sizeof(struct pci_pme_device), GFP_KERNEL); - if (!pme_dev) - goto out; + if (!pme_dev) { + dev_warn(&dev->dev, "can't enable PME#\n"); + return; + } pme_dev->dev = dev; mutex_lock(&pci_pme_list_mutex); list_add(&pme_dev->list, &pci_pme_list); @@ -1660,7 +1662,6 @@ void pci_pme_active(struct pci_dev *dev, bool enable) } } -out: dev_dbg(&dev->dev, "PME# %s\n", enable ? "enabled" : "disabled"); } |