]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/chrome: cros_ec_spi: Always add of_match_table
authorEvan Green <evgreen@chromium.org>
Thu, 9 May 2019 18:17:50 +0000 (11:17 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 20 May 2019 08:18:10 +0000 (10:18 +0200)
commit75501d2edc8044af145a2c237b0ccc2c03deb4ab
treeeaabb74ba0dbebe464be811f3d1bf3773c4ea659
parent2ad1f7a91449de48d4bd5d1ec361ba7bb9026505
platform/chrome: cros_ec_spi: Always add of_match_table

The Chrome OS EC driver attaches to devices using the of_match_table
even when ACPI is the underlying firmware. It does this using the
magic PRP0001 ACPI HID, which tells ACPI to go find an OF compatible
string under the hood and match on that.

The cros_ec_spi driver needs to provide the of_match_table regardless
of whether CONFIG_OF is enabled or not, since the table is used by
ACPI for PRP0001 devices.

Signed-off-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_spi.c