summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-03-24 16:49:53 -0600
committerLen Brown <len.brown@intel.com>2009-03-27 12:50:11 -0400
commit44515374cba9e46d5622256b43eb06b9c349cee1 (patch)
treeef165c24ba7b0d6add3812fcfc56302a0acd1d25 /drivers/acpi/internal.h
parenta5f820feb54a59fcdaf4a67a6381ea1ddb36cc6e (diff)
downloadkernel-crypto-44515374cba9e46d5622256b43eb06b9c349cee1.tar.gz
kernel-crypto-44515374cba9e46d5622256b43eb06b9c349cee1.tar.xz
kernel-crypto-44515374cba9e46d5622256b43eb06b9c349cee1.zip
ACPI: call acpi_power_init() explicitly rather than as initcall
This patch makes acpi_init() call acpi_power_init() directly. Previously, both were subsys_initcalls. acpi_power_init() must happen after acpi_init(), and it's better to call it explicitly rather than rely on link ordering. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> CC: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index fad8e38ed27..a8178add7fd 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -5,7 +5,7 @@ int acpi_scan_init(void);
/* --------------------------------------------------------------------------
Power Resource
-------------------------------------------------------------------------- */
-
+int acpi_power_init(void);
int acpi_device_sleep_wake(struct acpi_device *dev,
int enable, int sleep_state, int dev_state);
int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state);