Skip to content

Commit

Permalink
Fix acpi_pm_device_sleep_wake() by providing a stub for CONFIG_PM_SLE…
Browse files Browse the repository at this point in the history
…EP=n

So that one of the several config option permutations will build again.

Tested-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
David Howells authored and Jesse Barnes committed Jul 8, 2008
1 parent 337001b commit f7a1b86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/acpi/acpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ static inline int acpi_pm_device_sleep_state(struct device *d, int *p)
*p = ACPI_STATE_D0;
return ACPI_STATE_D3;
}
static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
{
return -ENODEV;
}
#endif /* !CONFIG_PM_SLEEP */

#endif /* CONFIG_ACPI */
Expand Down

0 comments on commit f7a1b86

Please sign in to comment.