Skip to contentSkip to conversation

misc: ibm-panel: add missing MODULE_DEVICE_TABLE

PATCH Applied Zeng Heng 2 participants 2 messages Sep 28, 2022

Subsystems (3)
lore
Share & tools
lore

Zeng Heng

author
#0 lore raw

PATCH 1/1 misc: ibm-panel: add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/input/misc/ibm-panel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/misc/ibm-panel.c +1 -0
index 094bcdb568f1..a8fba0054719 100644
@@ -183,6 +183,7 @@ static const struct of_device_id ibm_panel_match[] = {
 	{ .compatible = "ibm,op-panel" },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, ibm_panel_match);
 
 static struct i2c_driver ibm_panel_driver = {
 	.driver = {
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Zeng Heng

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

Applied, thank you.

Signature · 1 line
Dmitry