diff options
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index c24235d8fb52..156e15c35ffa 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -1835,7 +1835,7 @@ static int acpi_ec_suspend(struct device *dev) | |||
1835 | struct acpi_ec *ec = | 1835 | struct acpi_ec *ec = |
1836 | acpi_driver_data(to_acpi_device(dev)); | 1836 | acpi_driver_data(to_acpi_device(dev)); |
1837 | 1837 | ||
1838 | if (ec_freeze_events) | 1838 | if (acpi_sleep_no_ec_events() && ec_freeze_events) |
1839 | acpi_ec_disable_event(ec); | 1839 | acpi_ec_disable_event(ec); |
1840 | return 0; | 1840 | return 0; |
1841 | } | 1841 | } |