Skip to content

Commit 75501d2

Browse files
Evan GreenEnric Balletbo i Serra
authored andcommitted
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>
1 parent 2ad1f7a commit 75501d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/platform/chrome/cros_ec_spi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ MODULE_DEVICE_TABLE(spi, cros_ec_spi_id);
777777
static struct spi_driver cros_ec_driver_spi = {
778778
.driver = {
779779
.name = "cros-ec-spi",
780-
.of_match_table = of_match_ptr(cros_ec_spi_of_match),
780+
.of_match_table = cros_ec_spi_of_match,
781781
.pm = &cros_ec_spi_pm_ops,
782782
},
783783
.probe = cros_ec_spi_probe,

0 commit comments

Comments
 (0)