[PATCH] drm/bridge: lontium-lt9611uxc: add missing MODULE_DEVICE_TABLE()

Pengpeng Hou posted 1 patch 3 hours ago
drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] drm/bridge: lontium-lt9611uxc: add missing MODULE_DEVICE_TABLE()
Posted by Pengpeng Hou 3 hours ago
The driver has a match table for the i2c bus wired into its driver
structure, but the table is not exported with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE() entry so module alias information
is generated for automatic module loading.

This is a source-level fix.  It does not claim dynamic hardware
reproduction; the evidence is the driver-owned match table, its use by
the driver registration structure, and the missing module alias
publication.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
---
 drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
index 11aab07d88df..25403569510d 100644
--- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
+++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
@@ -896,6 +896,7 @@ static const struct i2c_device_id lt9611uxc_id[] = {
 	{ "lontium,lt9611uxc" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(i2c, lt9611uxc_id);
 
 static const struct of_device_id lt9611uxc_match_table[] = {
 	{ .compatible = "lontium,lt9611uxc" },
-- 
2.53.0