diff options
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 839b542d5087..788db781a519 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -575,7 +575,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address, | |||
575 | if (bits != 8 && acpi_strict) | 575 | if (bits != 8 && acpi_strict) |
576 | return AE_BAD_PARAMETER; | 576 | return AE_BAD_PARAMETER; |
577 | 577 | ||
578 | acpi_ec_burst_enable(ec); | 578 | if (EC_FLAGS_MSI) |
579 | acpi_ec_burst_enable(ec); | ||
579 | 580 | ||
580 | if (function == ACPI_READ) { | 581 | if (function == ACPI_READ) { |
581 | result = acpi_ec_read(ec, address, &temp); | 582 | result = acpi_ec_read(ec, address, &temp); |
@@ -596,7 +597,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address, | |||
596 | } | 597 | } |
597 | } | 598 | } |
598 | 599 | ||
599 | acpi_ec_burst_disable(ec); | 600 | if (EC_FLAGS_MSI) |
601 | acpi_ec_burst_disable(ec); | ||
600 | 602 | ||
601 | switch (result) { | 603 | switch (result) { |
602 | case -EINVAL: | 604 | case -EINVAL: |