Input: ioc3kbd - add device table
authorKarel Balej <balejk@matfyz.cz>
Fri, 15 Mar 2024 19:46:14 +0000 (12:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Mar 2024 20:35:49 +0000 (13:35 -0700)
Without the device table the driver will not auto-load when compiled as
a module.

Fixes: 273db8f03509 ("Input: add IOC3 serio driver")
Signed-off-by: Karel Balej <balejk@matfyz.cz>
Link: https://lore.kernel.org/r/20240313115832.8052-1-balejk@matfyz.cz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/ioc3kbd.c

index 50552dc7b4f5e689b7f1e9e63f9104e80efc57c2..676b0bda3d720c2dbbeb735f828817cbe03618b7 100644 (file)
@@ -200,9 +200,16 @@ static void ioc3kbd_remove(struct platform_device *pdev)
        serio_unregister_port(d->aux);
 }
 
+static const struct platform_device_id ioc3kbd_id_table[] = {
+       { "ioc3-kbd", },
+       { }
+};
+MODULE_DEVICE_TABLE(platform, ioc3kbd_id_table);
+
 static struct platform_driver ioc3kbd_driver = {
        .probe          = ioc3kbd_probe,
        .remove_new     = ioc3kbd_remove,
+       .id_table       = ioc3kbd_id_table,
        .driver = {
                .name = "ioc3-kbd",
        },