summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-08-27 15:34:11 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-08-27 18:26:01 +0300
commit387e4975ecd3107fdf8819f6089fdee83bb7102a (patch)
tree74518261a3ba4bcf19c716718bf62c83b63bd0ed /drivers/input/keyboard
parent45d6486d2a5ad4310c1379071fc39d02d6784cbe (diff)
downloadlinux-387e4975ecd3107fdf8819f6089fdee83bb7102a.tar.xz
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@huawei.com> Link: https://lore.kernel.org/r/20240827123411.431388-1-liaochen4@huawei.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r--drivers/input/keyboard/mt6779-keypad.c1
1 files changed, 1 insertions, 0 deletions
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,