aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-05-25 08:38:52 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-05-25 08:38:52 -0400
commit8ce62f85a81f57e86bc120ab690facc612223188 (patch)
tree1754f856a05e238e0b5cf30aa89e4f82b2f803b3 /drivers/acpi/internal.h
parenta3cffce4fbafac072660648e028cc9e629b5b3c8 (diff)
ACPI / platform / LPSS: Enable async suspend/resume of LPSS devices
To seed up suspend and resume of devices included into Intel SoCs handled by the ACPI LPSS driver during system suspend, make acpi_lpss_create_device() call device_enable_async_suspend() for every device created by it. This requires acpi_create_platform_device() to be modified to return a pointer to struct platform_device instead of an int. As a result, acpi_create_platform_device() cannot be pointed to by the .attach pointer in platform_handler directly any more, so a simple wrapper around it is necessary for this purpose. That, in turn, allows the second unused argument of acpi_create_platform_device() to be dropped, which is an improvement. Tested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index 957391306cbf..bb7de413d06d 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -180,8 +180,7 @@ static inline void suspend_nvs_restore(void) {}
180 -------------------------------------------------------------------------- */ 180 -------------------------------------------------------------------------- */
181struct platform_device; 181struct platform_device;
182 182
183int acpi_create_platform_device(struct acpi_device *adev, 183struct platform_device *acpi_create_platform_device(struct acpi_device *adev);
184 const struct acpi_device_id *id);
185 184
186/*-------------------------------------------------------------------------- 185/*--------------------------------------------------------------------------
187 Video 186 Video