Commit fdcbe17c authored by Boris Brezillon's avatar Boris Brezillon Committed by Chun-Kuang Hu
Browse files

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: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent 368166ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -7,6 +7,7 @@
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>


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


struct platform_driver mtk_cec_driver = {
struct platform_driver mtk_cec_driver = {
	.probe = mtk_cec_probe,
	.probe = mtk_cec_probe,
+1 −0
Original line number Original line Diff line number Diff line
@@ -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 = {
struct platform_driver mtk_dpi_driver = {
	.probe = mtk_dpi_probe,
	.probe = mtk_dpi_probe,
+1 −0
Original line number Original line Diff line number Diff line
@@ -470,6 +470,7 @@ static const struct of_device_id mtk_drm_of_ids[] = {
	  .data = &mt8183_mmsys_driver_data},
	  .data = &mt8183_mmsys_driver_data},
	{ }
	{ }
};
};
MODULE_DEVICE_TABLE(of, mtk_drm_of_ids);


static int mtk_drm_probe(struct platform_device *pdev)
static int mtk_drm_probe(struct platform_device *pdev)
{
{
+1 −0
Original line number Original line Diff line number Diff line
@@ -1145,6 +1145,7 @@ static const struct of_device_id mtk_dsi_of_match[] = {
	  .data = &mt8183_dsi_driver_data },
	  .data = &mt8183_dsi_driver_data },
	{ },
	{ },
};
};
MODULE_DEVICE_TABLE(of, mtk_dsi_of_match);


struct platform_driver mtk_dsi_driver = {
struct platform_driver mtk_dsi_driver = {
	.probe = mtk_dsi_probe,
	.probe = mtk_dsi_probe,
+1 −0
Original line number Original line Diff line number Diff line
@@ -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 = {
static struct platform_driver mtk_hdmi_driver = {
	.probe = mtk_drm_hdmi_probe,
	.probe = mtk_drm_hdmi_probe,
Loading