diff options
author | Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com> | 2007-02-10 01:32:16 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-10 01:32:16 -0500 |
commit | aafbcd165a2a02e6dff173f66772b3148229ace8 (patch) | |
tree | 57b808dad805d7708721e3c0ebddb718a14a3328 /include | |
parent | ed41dab90eb40ac4911e60406bc653661f0e4ce1 (diff) |
ACPI: invoke acpi_sleep_init() earlier
late_initcall() is too late for acpi_sleep_init().
Call it directly from acpi_init code.
http://bugzilla.kernel.org/show_bug.cgi?id=7887
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
Signed-off-by: Vladimir Lebedev <vladimir.p.lebedev@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acpi_drivers.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 4dc8a5043ef0..ce0e62fb28c1 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -128,4 +128,14 @@ extern void unregister_hotplug_dock_device(acpi_handle handle); | |||
128 | #define register_hotplug_dock_device(h1, h2, c) (-ENODEV) | 128 | #define register_hotplug_dock_device(h1, h2, c) (-ENODEV) |
129 | #define unregister_hotplug_dock_device(h) do { } while(0) | 129 | #define unregister_hotplug_dock_device(h) do { } while(0) |
130 | #endif | 130 | #endif |
131 | |||
132 | /*-------------------------------------------------------------------------- | ||
133 | Suspend/Resume | ||
134 | -------------------------------------------------------------------------- */ | ||
135 | #ifdef CONFIG_ACPI_SLEEP | ||
136 | extern int acpi_sleep_init(void); | ||
137 | #else | ||
138 | #define acpi_sleep_init() do {} while (0) | ||
139 | #endif | ||
140 | |||
131 | #endif /*__ACPI_DRIVERS_H__*/ | 141 | #endif /*__ACPI_DRIVERS_H__*/ |