ACPI / PM: Fix build for unusual combination of Kconfig options
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 19 Jan 2013 13:29:31 +0000 (14:29 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 19 Jan 2013 21:09:53 +0000 (22:09 +0100)
commitd79beb39922e41083e8bbbb3de084a6ca958e25f
tree36041cddbb489cdadff4133e5924420a8e4a1f20
parent4d56410b955c3f4f7651a088e1c7a19a0d5d4e4c
ACPI / PM: Fix build for unusual combination of Kconfig options

CONFIG_PM_SLEEP may be set even if CONFIG_ACPI_SLEEP is unset,
although that is unusual.  For this reason, make the headers of
functions built for both CONFIG_ACPI and CONFIG_PM_SLEEP set
simultaneously depend on that combination of Kconfig options
instead of CONFIG_ACPI_SLEEP.

This fixes a build problem reported by Randy Dunlap.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/acpi.h