[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240313115832.8052-1-balejk@matfyz.cz>
Date: Wed, 13 Mar 2024 12:53:42 +0100
From: Karel Balej <balejk@...fyz.cz>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Thomas Bogendoerfer <tbogendoerfer@...e.de>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: stable@...r.kernel.org, balejk@...fyz.cz
Subject: [PATCH] input: ioc3kbd: add device table
Without the device table the driver will not auto-load when compiled as
a module.
Fixes: 273db8f03509 ("Input: add IOC3 serio driver")
Cc: stable@...r.kernel.org
Signed-off-by: Karel Balej <balejk@...fyz.cz>
---
I do not own any device using this driver, but I verified that modinfo
does not show the "platform:ioc3-kbd" alias when run on the module
compiled without this patch and it does with it.
drivers/input/serio/ioc3kbd.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/input/serio/ioc3kbd.c b/drivers/input/serio/ioc3kbd.c
index 50552dc7b4f5..676b0bda3d72 100644
--- a/drivers/input/serio/ioc3kbd.c
+++ b/drivers/input/serio/ioc3kbd.c
@@ -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",
},
--
2.44.0
Powered by blists - more mailing lists