Skip to contentSkip to conversation

Input: mt6779-keypad - fix module autoloading

PATCH Applied Liao Chen 2 participants 2 messages Aug 27, 2024

Subsystems (4)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/input/keyboard/mt6779-keypad.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/keyboard/mt6779-keypad.c +1 -0
index 19f69d167fbd..6d2557a9b9f5 100644
@@ -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,
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Liao Chen

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

Applied, thank you.

Signature · 1 line
Dmitry