]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/acpi/ec.c
Merge branch 'acpi-ec' into acpi-pm
[mirror_ubuntu-bionic-kernel.git] / drivers / acpi / ec.c
index 8ab4df64b8bee33ef1c21a4fdbfc862eb0247441..f97a76782493a29503a58d68ed2838f2638f667a 100644 (file)
@@ -27,7 +27,7 @@
 
 /* Uncomment next line to get verbose printout */
 /* #define DEBUG */
-#define pr_fmt(fmt) "ACPI : EC: " fmt
+#define pr_fmt(fmt) "ACPI: EC: " fmt
 
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -1879,7 +1879,7 @@ static int acpi_ec_suspend(struct device *dev)
        struct acpi_ec *ec =
                acpi_driver_data(to_acpi_device(dev));
 
-       if (ec_freeze_events)
+       if (acpi_sleep_no_ec_events() && ec_freeze_events)
                acpi_ec_disable_event(ec);
        return 0;
 }