File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 17
17
#include <linux/hid.h>
18
18
#include <linux/leds.h>
19
19
#include <linux/module.h>
20
+ #include <linux/of.h>
20
21
#include <linux/platform_data/cros_ec_commands.h>
21
22
#include <linux/platform_data/cros_ec_proto.h>
22
23
#include <linux/platform_device.h>
@@ -272,12 +273,21 @@ static const struct acpi_device_id cbas_ec_acpi_ids[] = {
272
273
};
273
274
MODULE_DEVICE_TABLE (acpi , cbas_ec_acpi_ids );
274
275
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
+
275
284
static struct platform_driver cbas_ec_driver = {
276
285
.probe = cbas_ec_probe ,
277
286
.remove = cbas_ec_remove ,
278
287
.driver = {
279
288
.name = "cbas_ec" ,
280
289
.acpi_match_table = ACPI_PTR (cbas_ec_acpi_ids ),
290
+ .of_match_table = of_match_ptr (cbas_ec_of_match ),
281
291
.pm = & cbas_ec_pm_ops ,
282
292
},
283
293
};
You can’t perform that action at this time.
0 commit comments