]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/chrome: cros_ec_lpc: Register the driver if ACPI entry is missing.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 1 Dec 2017 13:42:21 +0000 (14:42 +0100)
committerBenson Leung <bleung@chromium.org>
Sun, 17 Dec 2017 22:04:21 +0000 (14:04 -0800)
commit5f454bdf63536d7d0142be3cbb9e83899a199ec8
tree41d66c75eb4fd35216dde6c142bfccf22f710523
parentd3b56c566d4ba8cae688baf3cca94425d57ea783
platform/chrome: cros_ec_lpc: Register the driver if ACPI entry is missing.

Commit 12278dc7c572 ("platform/chrome: cros_ec_lpc: Add support for
GOOG004 ACPI device") added support when the firmware reports the ACPI
device, there are some firmwares though that doesn't report this device
but have it. In such cases we need to instantiate the driver explicitly
if it is not instantiated through ACPI.

Fixes: 12278dc7c572 ("platform/chrome: cros_ec_lpc: Add support for GOOG004 ACPI device")
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_lpc.c