summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-08-08 00:14:24 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-08-07 15:33:36 -0700
commit5a6c9b60b4cc15b22d3102b0033e5cb842125456 (patch)
treeb2fcd6eb53f998a1beb69ad6e4dbded3232ba292 /drivers
parent7bed523a95425b70af7a59df61d5adb422ef2038 (diff)
downloadop-kernel-dev-5a6c9b60b4cc15b22d3102b0033e5cb842125456.zip
op-kernel-dev-5a6c9b60b4cc15b22d3102b0033e5cb842125456.tar.gz
PCI PM: Export pci_pme_active to drivers
Export pci_pme_active() to drivers, so that they can clear the PME_status bit and disable PME# for their devices without involving ACPI. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 0a3d856..c9884bb 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1060,7 +1060,7 @@ bool pci_pme_capable(struct pci_dev *dev, pci_power_t state)
* The caller must verify that the device is capable of generating PME# before
* calling this function with @enable equal to 'true'.
*/
-static void pci_pme_active(struct pci_dev *dev, bool enable)
+void pci_pme_active(struct pci_dev *dev, bool enable)
{
u16 pmcsr;
@@ -1941,6 +1941,7 @@ EXPORT_SYMBOL(pci_set_power_state);
EXPORT_SYMBOL(pci_save_state);
EXPORT_SYMBOL(pci_restore_state);
EXPORT_SYMBOL(pci_pme_capable);
+EXPORT_SYMBOL(pci_pme_active);
EXPORT_SYMBOL(pci_enable_wake);
EXPORT_SYMBOL(pci_target_state);
EXPORT_SYMBOL(pci_prepare_to_sleep);
OpenPOWER on IntegriCloud