|
@@ -435,7 +435,13 @@ static int __init cros_ec_lpc_init(void)
|
|
int ret;
|
|
int ret;
|
|
acpi_status status;
|
|
acpi_status status;
|
|
|
|
|
|
- if (!dmi_check_system(cros_ec_lpc_dmi_table)) {
|
|
|
|
|
|
+ status = acpi_get_devices(ACPI_DRV_NAME, cros_ec_lpc_parse_device,
|
|
|
|
+ &cros_ec_lpc_acpi_device_found, NULL);
|
|
|
|
+ if (ACPI_FAILURE(status))
|
|
|
|
+ pr_warn(DRV_NAME ": Looking for %s failed\n", ACPI_DRV_NAME);
|
|
|
|
+
|
|
|
|
+ if (!cros_ec_lpc_acpi_device_found &&
|
|
|
|
+ !dmi_check_system(cros_ec_lpc_dmi_table)) {
|
|
pr_err(DRV_NAME ": unsupported system.\n");
|
|
pr_err(DRV_NAME ": unsupported system.\n");
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
}
|
|
}
|
|
@@ -450,11 +456,6 @@ static int __init cros_ec_lpc_init(void)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- status = acpi_get_devices(ACPI_DRV_NAME, cros_ec_lpc_parse_device,
|
|
|
|
- &cros_ec_lpc_acpi_device_found, NULL);
|
|
|
|
- if (ACPI_FAILURE(status))
|
|
|
|
- pr_warn(DRV_NAME ": Looking for %s failed\n", ACPI_DRV_NAME);
|
|
|
|
-
|
|
|
|
if (!cros_ec_lpc_acpi_device_found) {
|
|
if (!cros_ec_lpc_acpi_device_found) {
|
|
/* Register the device, and it'll get hooked up automatically */
|
|
/* Register the device, and it'll get hooked up automatically */
|
|
ret = platform_device_register(&cros_ec_lpc_device);
|
|
ret = platform_device_register(&cros_ec_lpc_device);
|