linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] misc: ibm-panel: add missing MODULE_DEVICE_TABLE
@ 2022-09-28 14:31 Zeng Heng
  2022-09-28 16:03 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Zeng Heng @ 2022-09-28 14:31 UTC (permalink / raw)
  To: eajames, dmitry.torokhov; +Cc: linux-input, liwei391, zengheng4

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.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
---
 drivers/input/misc/ibm-panel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/misc/ibm-panel.c b/drivers/input/misc/ibm-panel.c
index 094bcdb568f1..a8fba0054719 100644
--- a/drivers/input/misc/ibm-panel.c
+++ b/drivers/input/misc/ibm-panel.c
@@ -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 = {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-28 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28 14:31 [PATCH -next] misc: ibm-panel: add missing MODULE_DEVICE_TABLE Zeng Heng
2022-09-28 16:03 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).