Skip to content

Commit fdcbe17

Browse files
bbrezillonChun-Kuang Hu
authored andcommitted
drm/mediatek: Add missing MODULE_DEVICE_TABLE()
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 <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]> Reviewed-by: Hsin-Yi Wang <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 368166e commit fdcbe17

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

drivers/gpu/drm/mediatek/mtk_cec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <linux/delay.h>
88
#include <linux/io.h>
99
#include <linux/interrupt.h>
10+
#include <linux/module.h>
1011
#include <linux/mod_devicetable.h>
1112
#include <linux/platform_device.h>
1213

@@ -245,6 +246,7 @@ static const struct of_device_id mtk_cec_of_ids[] = {
245246
{ .compatible = "mediatek,mt8173-cec", },
246247
{}
247248
};
249+
MODULE_DEVICE_TABLE(of, mtk_cec_of_ids);
248250

249251
struct platform_driver mtk_cec_driver = {
250252
.probe = mtk_cec_probe,

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ static const struct of_device_id mtk_dpi_of_ids[] = {
828828
},
829829
{ },
830830
};
831+
MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);
831832

832833
struct platform_driver mtk_dpi_driver = {
833834
.probe = mtk_dpi_probe,

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ static const struct of_device_id mtk_drm_of_ids[] = {
470470
.data = &mt8183_mmsys_driver_data},
471471
{ }
472472
};
473+
MODULE_DEVICE_TABLE(of, mtk_drm_of_ids);
473474

474475
static int mtk_drm_probe(struct platform_device *pdev)
475476
{

drivers/gpu/drm/mediatek/mtk_dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ static const struct of_device_id mtk_dsi_of_match[] = {
11451145
.data = &mt8183_dsi_driver_data },
11461146
{ },
11471147
};
1148+
MODULE_DEVICE_TABLE(of, mtk_dsi_of_match);
11481149

11491150
struct platform_driver mtk_dsi_driver = {
11501151
.probe = mtk_dsi_probe,

drivers/gpu/drm/mediatek/mtk_hdmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,7 @@ static const struct of_device_id mtk_drm_hdmi_of_ids[] = {
18181818
},
18191819
{}
18201820
};
1821+
MODULE_DEVICE_TABLE(of, mtk_drm_hdmi_of_ids);
18211822

18221823
static struct platform_driver mtk_hdmi_driver = {
18231824
.probe = mtk_drm_hdmi_probe,

drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ static const struct of_device_id mtk_hdmi_ddc_match[] = {
335335
{ .compatible = "mediatek,mt8173-hdmi-ddc", },
336336
{},
337337
};
338+
MODULE_DEVICE_TABLE(of, mtk_hdmi_ddc_match);
338339

339340
struct platform_driver mtk_hdmi_ddc_driver = {
340341
.probe = mtk_hdmi_ddc_probe,

0 commit comments

Comments
 (0)