drivers: gpu: add missing MODULE_DEVICE_TABLE in anx7625.c
authorYu Jiahua <yujiahua1@huawei.com>
Wed, 16 Jun 2021 03:44:48 +0000 (19:44 -0800)
committerRobert Foss <robert.foss@linaro.org>
Wed, 16 Jun 2021 12:01:40 +0000 (14:01 +0200)
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: Yu Jiahua <yujiahua1@huawei.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210616034448.34919-1-yujiahua1@huawei.com
drivers/gpu/drm/bridge/analogix/anx7625.c

index 7519b7a..98e1755 100644 (file)
@@ -1874,6 +1874,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 = {