Skip to content

Commit d40e9ed

Browse files
balejkdtor
authored andcommitted
Input: ioc3kbd - add device table
Without the device table the driver will not auto-load when compiled as a module. Fixes: 273db8f ("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>
1 parent bf32bce commit d40e9ed

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/input/serio/ioc3kbd.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,16 @@ static void ioc3kbd_remove(struct platform_device *pdev)
200200
serio_unregister_port(d->aux);
201201
}
202202

203+
static const struct platform_device_id ioc3kbd_id_table[] = {
204+
{ "ioc3-kbd", },
205+
{ }
206+
};
207+
MODULE_DEVICE_TABLE(platform, ioc3kbd_id_table);
208+
203209
static struct platform_driver ioc3kbd_driver = {
204210
.probe = ioc3kbd_probe,
205211
.remove_new = ioc3kbd_remove,
212+
.id_table = ioc3kbd_id_table,
206213
.driver = {
207214
.name = "ioc3-kbd",
208215
},

0 commit comments

Comments
 (0)