aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/keyboard/cros_ec_keyb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c
index 72d3499bb029..1e83ef99098e 100644
--- a/drivers/input/keyboard/cros_ec_keyb.c
+++ b/drivers/input/keyboard/cros_ec_keyb.c
@@ -348,10 +348,19 @@ static int cros_ec_keyb_resume(struct device *dev)
348 348
349static SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume); 349static SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume);
350 350
351#ifdef CONFIG_OF
352static const struct of_device_id cros_ec_keyb_of_match[] = {
353 { .compatible = "google,cros-ec-keyb" },
354 {},
355};
356MODULE_DEVICE_TABLE(of, cros_ec_keyb_of_match);
357#endif
358
351static struct platform_driver cros_ec_keyb_driver = { 359static struct platform_driver cros_ec_keyb_driver = {
352 .probe = cros_ec_keyb_probe, 360 .probe = cros_ec_keyb_probe,
353 .driver = { 361 .driver = {
354 .name = "cros-ec-keyb", 362 .name = "cros-ec-keyb",
363 .of_match_table = of_match_ptr(cros_ec_keyb_of_match),
355 .pm = &cros_ec_keyb_pm_ops, 364 .pm = &cros_ec_keyb_pm_ops,
356 }, 365 },
357}; 366};