File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717#include <linux/hid.h>
1818#include <linux/leds.h>
1919#include <linux/module.h>
20+ #include <linux/of.h>
2021#include <linux/platform_data/cros_ec_commands.h>
2122#include <linux/platform_data/cros_ec_proto.h>
2223#include <linux/platform_device.h>
@@ -272,12 +273,21 @@ static const struct acpi_device_id cbas_ec_acpi_ids[] = {
272273};
273274MODULE_DEVICE_TABLE (acpi , cbas_ec_acpi_ids );
274275
276+ #ifdef CONFIG_OF
277+ static const struct of_device_id cbas_ec_of_match [] = {
278+ { .compatible = "google,cros-cbas" },
279+ { },
280+ };
281+ MODULE_DEVICE_TABLE (of , cbas_ec_of_match );
282+ #endif
283+
275284static struct platform_driver cbas_ec_driver = {
276285 .probe = cbas_ec_probe ,
277286 .remove = cbas_ec_remove ,
278287 .driver = {
279288 .name = "cbas_ec" ,
280289 .acpi_match_table = ACPI_PTR (cbas_ec_acpi_ids ),
290+ .of_match_table = of_match_ptr (cbas_ec_of_match ),
281291 .pm = & cbas_ec_pm_ops ,
282292 },
283293};
You can’t perform that action at this time.
0 commit comments