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)  	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;  }  | 
