aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/arc_ps2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/serio/arc_ps2.c')
-rw-r--r--drivers/input/serio/arc_ps2.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/input/serio/arc_ps2.c b/drivers/input/serio/arc_ps2.c
index c52e3e589f72..3fb7727c8ea5 100644
--- a/drivers/input/serio/arc_ps2.c
+++ b/drivers/input/serio/arc_ps2.c
@@ -14,6 +14,7 @@
14#include <linux/input.h> 14#include <linux/input.h>
15#include <linux/serio.h> 15#include <linux/serio.h>
16#include <linux/platform_device.h> 16#include <linux/platform_device.h>
17#include <linux/of.h>
17#include <linux/io.h> 18#include <linux/io.h>
18#include <linux/kernel.h> 19#include <linux/kernel.h>
19#include <linux/slab.h> 20#include <linux/slab.h>
@@ -259,10 +260,19 @@ static int arc_ps2_remove(struct platform_device *pdev)
259 return 0; 260 return 0;
260} 261}
261 262
263#ifdef CONFIG_OF
264static const struct of_device_id arc_ps2_match[] = {
265 { .compatible = "snps,arc_ps2" },
266 { },
267};
268MODULE_DEVICE_TABLE(of, arc_ps2_match);
269#endif
270
262static struct platform_driver arc_ps2_driver = { 271static struct platform_driver arc_ps2_driver = {
263 .driver = { 272 .driver = {
264 .name = "arc_ps2", 273 .name = "arc_ps2",
265 .owner = THIS_MODULE, 274 .owner = THIS_MODULE,
275 .of_match_table = of_match_ptr(arc_ps2_match),
266 }, 276 },
267 .probe = arc_ps2_probe, 277 .probe = arc_ps2_probe,
268 .remove = arc_ps2_remove, 278 .remove = arc_ps2_remove,