Skip to contentSkip to conversation

drivers: gpu: add missing MODULE_DEVICE_TABLE in anx7625.c

PATCH In review Yu Jiahua 2 participants 2 messages Jun 16, 2021

Subsystems (3)
lore
Share & tools
lore

Yu Jiahua

author
#0 lore raw

PATCH 1/1 drivers: gpu: add missing MODULE_DEVICE_TABLE in anx7625.c

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/gpu/drm/bridge/analogix/anx7625.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/analogix/anx7625.c +1 -0
index 65cc05982f82..beb01364af4d 100644
@@ -1830,6 +1830,7 @@ static const struct of_device_id anx_match_table[] = {
 	{.compatible = "analogix,anx7625",},
 	{},
 };
+MODULE_DEVICE_TABLE(of, anx_match_table);
 
 static struct i2c_driver anx7625_driver = {
 	.driver = {
Signature · 1 line
2.17.1
#1 lore raw

Hey Yu,

Thank you for submitting this, it looks good to me and I pulled into drm-misc-next.

https://cgit.freedesktop.org/drm/drm-misc/commit/?id=ad5fd900a69b1ae24e6b22506dea637b6bbbdb55

Quoted 25 lines · Yu Jiahua

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/gpu/drm/bridge/analogix/anx7625.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/analogix/anx7625.c +1 -1
index 65cc05982f82..beb01364af4d 100644
@@ -1830,6 +1830,7 @@ static const struct of_device_id anx_match_table[] = {
        {.compatible = "analogix,anx7625",},
        {},
 };
+MODULE_DEVICE_TABLE(of, anx_match_table);
 
 static struct i2c_driver anx7625_driver = {
        .driver = {
--

2.17.1