ACPI / PM: Export acpi_target_system_state() to modules
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 May 2014 21:22:15 +0000 (23:22 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 May 2014 22:36:08 +0000 (00:36 +0200)
Export the acpi_target_system_state() function to modules so that
modular drivers can use it to check what the target ACPI sleep state
of the system is (that is needed for i915 mostly at this point).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c

index c40fb2e81bbc5d4ce9266174c0c2d7614755c644..2281ca31c1bca4d0dd8977ef821a541842b86771 100644 (file)
@@ -89,6 +89,7 @@ u32 acpi_target_system_state(void)
 {
        return acpi_target_sleep_state;
 }
+EXPORT_SYMBOL_GPL(acpi_target_system_state);
 
 static bool pwr_btn_event_pending;