diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-16 15:44:44 +0100 | 
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-16 15:44:44 +0100 | 
| commit | a7d2472d8145f6d0729317e3cabe2d0f1a14a87a (patch) | |
| tree | c15eceef4afd84dea49c8f40ae9b45349ce350a8 /drivers/acpi/device_pm.c | |
| parent | 2f466d33f5f60542d3d82c0477de5863b22c94b9 (diff) | |
| parent | 86b0cc12bba9cb9cc3c20974dec565f44c961fc3 (diff) | |
| download | linux-a7d2472d8145f6d0729317e3cabe2d0f1a14a87a.tar.bz2 | |
Merge branch 'acpi-driver-core'
* acpi-driver-core:
  ACPI / AC: Remove struct acpi_device pointer from struct acpi_ac
  spi: Use stable dev_name for ACPI enumerated SPI slaves
  i2c: Use stable dev_name for ACPI enumerated I2C slaves
  ACPI: Provide acpi_dev_name accessor for struct acpi_device device name
  ACPI / bind: Use (put|get)_device() on ACPI device objects too
  ACPI: Eliminate the DEVICE_ACPI_HANDLE() macro
  ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node
Diffstat (limited to 'drivers/acpi/device_pm.c')
| -rw-r--r-- | drivers/acpi/device_pm.c | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index d42b2fb5a7e9..b3480cf7db1a 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c @@ -22,16 +22,12 @@   * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   */ -#include <linux/device.h> +#include <linux/acpi.h>  #include <linux/export.h>  #include <linux/mutex.h>  #include <linux/pm_qos.h>  #include <linux/pm_runtime.h> -#include <acpi/acpi.h> -#include <acpi/acpi_bus.h> -#include <acpi/acpi_drivers.h> -  #include "internal.h"  #define _COMPONENT	ACPI_POWER_COMPONENT @@ -548,7 +544,7 @@ static int acpi_dev_pm_get_state(struct device *dev, struct acpi_device *adev,   */  int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p, int d_max_in)  { -	acpi_handle handle = DEVICE_ACPI_HANDLE(dev); +	acpi_handle handle = ACPI_HANDLE(dev);  	struct acpi_device *adev;  	int ret, d_min, d_max; @@ -656,7 +652,7 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)  	if (!device_run_wake(phys_dev))  		return -EINVAL; -	handle = DEVICE_ACPI_HANDLE(phys_dev); +	handle = ACPI_HANDLE(phys_dev);  	if (!handle || acpi_bus_get_device(handle, &adev)) {  		dev_dbg(phys_dev, "ACPI handle without context in %s!\n",  			__func__); @@ -700,7 +696,7 @@ int acpi_pm_device_sleep_wake(struct device *dev, bool enable)  	if (!device_can_wakeup(dev))  		return -EINVAL; -	handle = DEVICE_ACPI_HANDLE(dev); +	handle = ACPI_HANDLE(dev);  	if (!handle || acpi_bus_get_device(handle, &adev)) {  		dev_dbg(dev, "ACPI handle without context in %s!\n", __func__);  		return -ENODEV; @@ -722,7 +718,7 @@ int acpi_pm_device_sleep_wake(struct device *dev, bool enable)   */  struct acpi_device *acpi_dev_pm_get_node(struct device *dev)  { -	acpi_handle handle = DEVICE_ACPI_HANDLE(dev); +	acpi_handle handle = ACPI_HANDLE(dev);  	struct acpi_device *adev;  	return handle && !acpi_bus_get_device(handle, &adev) ? adev : NULL; |