diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 5e1ed318276c..9922cc46b15c 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -303,11 +303,11 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, | |||
303 | /* following two actions should be kept atomic */ | 303 | /* following two actions should be kept atomic */ |
304 | ec->curr = t; | 304 | ec->curr = t; |
305 | start_transaction(ec); | 305 | start_transaction(ec); |
306 | if (ec->curr->command == ACPI_EC_COMMAND_QUERY) | ||
307 | clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags); | ||
308 | spin_unlock_irqrestore(&ec->lock, tmp); | 306 | spin_unlock_irqrestore(&ec->lock, tmp); |
309 | ret = ec_poll(ec); | 307 | ret = ec_poll(ec); |
310 | spin_lock_irqsave(&ec->lock, tmp); | 308 | spin_lock_irqsave(&ec->lock, tmp); |
309 | if (ec->curr->command == ACPI_EC_COMMAND_QUERY) | ||
310 | clear_bit(EC_FLAGS_QUERY_PENDING, &ec->flags); | ||
311 | ec->curr = NULL; | 311 | ec->curr = NULL; |
312 | spin_unlock_irqrestore(&ec->lock, tmp); | 312 | spin_unlock_irqrestore(&ec->lock, tmp); |
313 | return ret; | 313 | return ret; |