ACPI / EC: Remove irqs_disabled() check.
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / ec.c
index 170d7438780092158f84bb5919cafeefa35a14d8..20bd43f298533ed21fe1154935cb7d6e73bcbd57 100644 (file)
@@ -504,8 +504,7 @@ static int ec_poll(struct acpi_ec *ec)
                        msecs_to_jiffies(ec_delay);
                unsigned long usecs = ACPI_EC_UDELAY_POLL;
                do {
-                       /* don't sleep with disabled interrupts */
-                       if (EC_FLAGS_MSI || irqs_disabled()) {
+                       if (EC_FLAGS_MSI) {
                                usecs = ACPI_EC_MSI_UDELAY;
                                udelay(usecs);
                                if (ec_transaction_completed(ec))