[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240827123411.431388-1-liaochen4@huawei.com>
Date: Tue, 27 Aug 2024 12:34:11 +0000
From: Liao Chen <liaochen4@...wei.com>
To: <linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-mediatek@...ts.infradead.org>
CC: <mkorpershoek@...libre.com>, <dmitry.torokhov@...il.com>,
<matthias.bgg@...il.com>, <angelogioacchino.delregno@...labora.com>
Subject: [PATCH -next] Input: mt6779-keypad - fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@...wei.com>
---
drivers/input/keyboard/mt6779-keypad.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/keyboard/mt6779-keypad.c b/drivers/input/keyboard/mt6779-keypad.c
index 19f69d167fbd..6d2557a9b9f5 100644
--- a/drivers/input/keyboard/mt6779-keypad.c
+++ b/drivers/input/keyboard/mt6779-keypad.c
@@ -260,6 +260,7 @@ static const struct of_device_id mt6779_keypad_of_match[] = {
{ .compatible = "mediatek,mt6873-keypad" },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, mt6779_keypad_of_match);
static struct platform_driver mt6779_keypad_pdrv = {
.probe = mt6779_keypad_pdrv_probe,
--
2.34.1
Powered by blists - more mailing lists