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>
This commit is contained in:

committed by
Len Brown

parent
ed41dab90e
commit
aafbcd165a
@@ -128,4 +128,14 @@ extern void unregister_hotplug_dock_device(acpi_handle handle);
|
||||
#define register_hotplug_dock_device(h1, h2, c) (-ENODEV)
|
||||
#define unregister_hotplug_dock_device(h) do { } while(0)
|
||||
#endif
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
Suspend/Resume
|
||||
-------------------------------------------------------------------------- */
|
||||
#ifdef CONFIG_ACPI_SLEEP
|
||||
extern int acpi_sleep_init(void);
|
||||
#else
|
||||
#define acpi_sleep_init() do {} while (0)
|
||||
#endif
|
||||
|
||||
#endif /*__ACPI_DRIVERS_H__*/
|
||||
|
Reference in New Issue
Block a user