The patch titled ACPI: suspend: fix ACPI_SLEEP states has been removed from the -mm tree. Its filename was acpi-suspend-fix-acpi_sleep-states.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: ACPI: suspend: fix ACPI_SLEEP states From: Alexey Starikovskiy <astarikovskiy@xxxxxxx> Fix for commit f216cc3748a3a22c2b99390fddcdafa0583791a2, allow S5 power-off, even if ACPI_SLEEP/PM_SLEEP is not selected. Signed-off-by: Alexey Starikovskiy <astarikovskiy@xxxxxxx> Acked-by: Rafael J. Wysocki <rjw@xxxxxxx> Cc: Len Brown <lenb@xxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/acpi/sleep/Makefile | 2 +- drivers/acpi/sleep/main.c | 4 ++++ include/acpi/acpi_drivers.h | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) diff -puN drivers/acpi/sleep/Makefile~acpi-suspend-fix-acpi_sleep-states drivers/acpi/sleep/Makefile --- a/drivers/acpi/sleep/Makefile~acpi-suspend-fix-acpi_sleep-states +++ a/drivers/acpi/sleep/Makefile @@ -1,5 +1,5 @@ obj-y := wakeup.o -obj-$(CONFIG_ACPI_SLEEP) += main.o +obj-y += main.o obj-$(CONFIG_ACPI_SLEEP) += proc.o EXTRA_CFLAGS += $(ACPI_CFLAGS) diff -puN drivers/acpi/sleep/main.c~acpi-suspend-fix-acpi_sleep-states drivers/acpi/sleep/main.c --- a/drivers/acpi/sleep/main.c~acpi-suspend-fix-acpi_sleep-states +++ a/drivers/acpi/sleep/main.c @@ -24,7 +24,9 @@ u8 sleep_states[ACPI_S_STATE_COUNT]; +#ifdef CONFIG_PM_SLEEP static u32 acpi_target_sleep_state = ACPI_STATE_S0; +#endif int acpi_sleep_prepare(u32 acpi_state) { @@ -299,6 +301,7 @@ int acpi_suspend(u32 acpi_state) return -EINVAL; } +#ifdef CONFIG_PM_SLEEP /** * acpi_pm_device_sleep_state - return preferred power state of ACPI device * in the system sleep state given by %acpi_target_sleep_state @@ -373,6 +376,7 @@ int acpi_pm_device_sleep_state(struct de *d_min_p = d_min; return d_max; } +#endif static void acpi_power_off_prepare(void) { diff -puN include/acpi/acpi_drivers.h~acpi-suspend-fix-acpi_sleep-states include/acpi/acpi_drivers.h --- a/include/acpi/acpi_drivers.h~acpi-suspend-fix-acpi_sleep-states +++ a/include/acpi/acpi_drivers.h @@ -147,10 +147,6 @@ static inline void unregister_hotplug_do /*-------------------------------------------------------------------------- Suspend/Resume -------------------------------------------------------------------------- */ -#ifdef CONFIG_ACPI_SLEEP extern int acpi_sleep_init(void); -#else -static inline int acpi_sleep_init(void) { return 0; } -#endif #endif /*__ACPI_DRIVERS_H__*/ _ Patches currently in -mm which might be from astarikovskiy@xxxxxxx are origin.patch git-acpi.patch acpi-sbs-fix-sbs-add-alarm-patch.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html