Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65153
b: refs/heads/master
c: 853298b
h: refs/heads/master
i:
  65151: 3036583
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Sep 25, 2007
1 parent 924570f commit 4b2cf07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f3f22269bdf702311342c5d106dfdd7347d1c3e
refs/heads/master: 853298bc03ef65e3eb392f5d61265605214ee8fb
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/sleep/Makefile
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions trunk/drivers/acpi/sleep/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -373,6 +376,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int wake, int *d_min_p)
*d_min_p = d_min;
return d_max;
}
#endif

static void acpi_power_off_prepare(void)
{
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/acpi/acpi_drivers.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ static inline void unregister_hotplug_dock_device(acpi_handle handle)
/*--------------------------------------------------------------------------
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__*/

0 comments on commit 4b2cf07

Please sign in to comment.