PCI/PM: Make pci_pme_active() ignore devices without PME support
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2013 10:32:51 +0000 (10:32 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 15 Apr 2013 20:15:44 +0000 (14:15 -0600)
commitffaddbe8f925a4f41eecb31e7fe69a9bdb6e2e59
tree0ed3a91e7ffc698748a8326894ea250d027f8fff
parent769ba7212f2059ca9fe0c73371e3d415c8c1c529
PCI/PM: Make pci_pme_active() ignore devices without PME support

Make pci_pme_active() ignore devices without PME support, so that
it doesn't print the "PME enabled" or "PME disabled" debug messages
for devices that don't support PME.

So that pci_pme_active() doesn't have to check pm_cap in addition
to pme_support, make pci_pm_init() clear pme_support upfront to
make sure that it will be 0 for pm_cap equal to 0.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c