[ISDN] HiSax sedlbauer: move ISAPNP and PCI code into functions of their own
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / ec.c
index 43749c86861f46cd0322e4e4682db0aed84b8d61..3f7935ab0cf53c0d6ca21b89096ba3c727e0e7b6 100644 (file)
@@ -886,7 +886,8 @@ int __init acpi_ec_ecdt_probe(void)
                printk(KERN_DEBUG PREFIX "Look up EC in DSDT\n");
                status = acpi_get_devices(ec_device_ids[0].id, ec_parse_device,
                                                boot_ec, NULL);
-               if (ACPI_FAILURE(status))
+               /* Check that acpi_get_devices actually find something */
+               if (ACPI_FAILURE(status) || !boot_ec->handle)
                        goto error;
        }