diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-03-24 16:49:53 -0600 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-27 12:50:11 -0400 |
commit | 44515374cba9e46d5622256b43eb06b9c349cee1 (patch) | |
tree | ef165c24ba7b0d6add3812fcfc56302a0acd1d25 /drivers/acpi/internal.h | |
parent | a5f820feb54a59fcdaf4a67a6381ea1ddb36cc6e (diff) |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index fad8e38ed271..a8178add7fd1 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); |