]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ACPI: invoke acpi_device_wakeup() with correct parameters
authorZhang Rui <rui.zhang@intel.com>
Thu, 23 Oct 2014 12:20:00 +0000 (20:20 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Oct 2014 20:03:19 +0000 (22:03 +0200)
Fix a bug that invokes acpi_device_wakeup() with wrong parameters.

Fixes: f35cec255557 (ACPI / PM: Always enable wakeup GPEs when enabling device wakeup)
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Cc: 3.17+ <stable@vger.kernel.org> # 3.17+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c

index 67075f800e34cb69b3a28d852b9bc15b00ffa702..5e9cbd664286e621d1bd512e0e0e031129e9be50 100644 (file)
@@ -710,7 +710,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 */