diff mbox

ACPI: invoke acpi_device_wakeup() with correct parameters

Message ID 1414067127.13162.43.camel@rzhang1-toshiba (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Zhang, Rui Oct. 23, 2014, 12:25 p.m. UTC
From f0d75284074478790a50655bf3cc1096f5f943fa Mon Sep 17 00:00:00 2001
From: Zhang Rui <rui.zhang@intel.com>
Date: Thu, 23 Oct 2014 20:20:00 +0800
Subject: [PATCH] ACPI: invoke acpi_device_wakeup() with correct parameters

Fix a bug that invokes acpi_device_wakeup() with wrong parameters.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/acpi/device_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafael J. Wysocki Oct. 23, 2014, 9:17 p.m. UTC | #1
On Thursday, October 23, 2014 08:25:27 PM Zhang Rui wrote:
> From f0d75284074478790a50655bf3cc1096f5f943fa Mon Sep 17 00:00:00 2001
> From: Zhang Rui <rui.zhang@intel.com>
> Date: Thu, 23 Oct 2014 20:20:00 +0800
> Subject: [PATCH] ACPI: invoke acpi_device_wakeup() with correct parameters
> 
> Fix a bug that invokes acpi_device_wakeup() with wrong parameters.
> 
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>

Applied, thanks!

> ---
>  drivers/acpi/device_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
> index 9177547..b4743d4 100644
> --- a/drivers/acpi/device_pm.c
> +++ b/drivers/acpi/device_pm.c
> @@ -711,7 +711,7 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)
>  		return -ENODEV;
>  	}
>  
> -	return acpi_device_wakeup(adev, enable, ACPI_STATE_S0);
> +	return acpi_device_wakeup(adev, ACPI_STATE_S0, enable);
>  }
>  EXPORT_SYMBOL(acpi_pm_device_run_wake);
>  #endif /* CONFIG_PM_RUNTIME */
>
diff mbox

Patch

diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
index 9177547..b4743d4 100644
--- a/drivers/acpi/device_pm.c
+++ b/drivers/acpi/device_pm.c
@@ -711,7 +711,7 @@  int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)
 		return -ENODEV;
 	}
 
-	return acpi_device_wakeup(adev, enable, ACPI_STATE_S0);
+	return acpi_device_wakeup(adev, ACPI_STATE_S0, enable);
 }
 EXPORT_SYMBOL(acpi_pm_device_run_wake);
 #endif /* CONFIG_PM_RUNTIME */