]> www.infradead.org Git - nvme.git/commitdiff
drm/mediatek: Add missing MODULE_DEVICE_TABLE()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Feb 2021 11:07:17 +0000 (12:07 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 31 Mar 2021 11:38:06 +0000 (19:38 +0800)
This patch adds the missing MODULE_DEVICE_TABLE definitions on different
Mediatek drivers which generates correct modalias for automatic loading
when these drivers are compiled as an external module.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_cec.c
drivers/gpu/drm/mediatek/mtk_dpi.c
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/mediatek/mtk_dsi.c
drivers/gpu/drm/mediatek/mtk_hdmi.c
drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c

index 332a4dfbdde7da2edfe86db60d8f766cc82d2d85..e9cef5c0c8f7eff879c268216784b2ffd0bcb559 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/interrupt.h>
+#include <linux/module.h>
 #include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 
@@ -245,6 +246,7 @@ static const struct of_device_id mtk_cec_of_ids[] = {
        { .compatible = "mediatek,mt8173-cec", },
        {}
 };
+MODULE_DEVICE_TABLE(of, mtk_cec_of_ids);
 
 struct platform_driver mtk_cec_driver = {
        .probe = mtk_cec_probe,
index 04d60b3d3c5ab6a08968d7b125ea1112966fa99f..bea91c81626e154edf2767b8514657e17df6c0b2 100644 (file)
@@ -828,6 +828,7 @@ static const struct of_device_id mtk_dpi_of_ids[] = {
        },
        { },
 };
+MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);
 
 struct platform_driver mtk_dpi_driver = {
        .probe = mtk_dpi_probe,
index b013d56d2777367bb08062e4d55519474089ad6f..b46bdb8985da326bcc5519f8d3ebe06895b3ef56 100644 (file)
@@ -470,6 +470,7 @@ static const struct of_device_id mtk_drm_of_ids[] = {
          .data = &mt8183_mmsys_driver_data},
        { }
 };
+MODULE_DEVICE_TABLE(of, mtk_drm_of_ids);
 
 static int mtk_drm_probe(struct platform_device *pdev)
 {
index 1c6e612f7eefcc199fca1c5ab0bd3badee219415..ae403c67cbd922d8ba4506b1801b786affb0ff62 100644 (file)
@@ -1145,6 +1145,7 @@ static const struct of_device_id mtk_dsi_of_match[] = {
          .data = &mt8183_dsi_driver_data },
        { },
 };
+MODULE_DEVICE_TABLE(of, mtk_dsi_of_match);
 
 struct platform_driver mtk_dsi_driver = {
        .probe = mtk_dsi_probe,
index 8ee55f9e295419d95912d9ea1f453a8c722077ef..b4696a9d73f7d1ac88a0b9c3a3615c14795991e0 100644 (file)
@@ -1818,6 +1818,7 @@ static const struct of_device_id mtk_drm_hdmi_of_ids[] = {
        },
        {}
 };
+MODULE_DEVICE_TABLE(of, mtk_drm_hdmi_of_ids);
 
 static struct platform_driver mtk_hdmi_driver = {
        .probe = mtk_drm_hdmi_probe,
index 62dbad5675bbfbc3f700451e785263c0815754d3..6207eac88550f7c5ea518f17425c284fde03436e 100644 (file)
@@ -335,6 +335,7 @@ static const struct of_device_id mtk_hdmi_ddc_match[] = {
        { .compatible = "mediatek,mt8173-hdmi-ddc", },
        {},
 };
+MODULE_DEVICE_TABLE(of, mtk_hdmi_ddc_match);
 
 struct platform_driver mtk_hdmi_ddc_driver = {
        .probe = mtk_hdmi_ddc_probe,