Skip to content

Commit

Permalink
ACPI / sleep: Drop acpi_suspend() which is not used
Browse files Browse the repository at this point in the history
The acpi_suspend() function has no callers, so drop it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
  • Loading branch information
Rafael J. Wysocki committed Mar 18, 2015
1 parent 06e5801 commit b8ee297
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,21 +806,6 @@ static void acpi_sleep_hibernate_setup(void)
static inline void acpi_sleep_hibernate_setup(void) {}
#endif /* !CONFIG_HIBERNATION */

int acpi_suspend(u32 acpi_state)
{
suspend_state_t states[] = {
[1] = PM_SUSPEND_STANDBY,
[3] = PM_SUSPEND_MEM,
[5] = PM_SUSPEND_MAX
};

if (acpi_state < 6 && states[acpi_state])
return pm_suspend(states[acpi_state]);
if (acpi_state == 4)
return hibernate();
return -EINVAL;
}

static void acpi_power_off_prepare(void)
{
/* Prepare to power off the system */
Expand Down
2 changes: 0 additions & 2 deletions drivers/acpi/sleep.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

extern int acpi_suspend(u32 state);

extern void acpi_enable_wakeup_devices(u8 sleep_state);
extern void acpi_disable_wakeup_devices(u8 sleep_state);

Expand Down

0 comments on commit b8ee297

Please sign in to comment.