phy: mediatek: Add missing MODULE_DEVICE_TABLE()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Feb 2021 11:06:30 +0000 (12:06 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 4 Feb 2021 08:07:37 +0000 (13:37 +0530)
This patch adds the missing MODULE_DEVICE_TABLE definitions on different
Mediatek phy 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>
Link: https://lore.kernel.org/r/20210203110631.686003-1-enric.balletbo@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-hdmi.c
drivers/phy/mediatek/phy-mtk-mipi-dsi.c

index 45be8aa724f3a69d01b5be01e615ca43d9d9eb42..8313bd517e4cf60064e26e2d09fec5c5572bf44f 100644 (file)
@@ -201,6 +201,7 @@ static const struct of_device_id mtk_hdmi_phy_match[] = {
        },
        {},
 };
+MODULE_DEVICE_TABLE(of, mtk_hdmi_phy_match);
 
 static struct platform_driver mtk_hdmi_phy_driver = {
        .probe = mtk_hdmi_phy_probe,
index 18c481251f04a6e539ab120c699b8d5f1d911098..9c7815bb90005bd1c0665a6ebc4c69a56866788d 100644 (file)
@@ -233,6 +233,7 @@ static const struct of_device_id mtk_mipi_tx_match[] = {
          .data = &mt8183_mipitx_data },
        { },
 };
+MODULE_DEVICE_TABLE(of, mtk_mipi_tx_match);
 
 struct platform_driver mtk_mipi_tx_driver = {
        .probe = mtk_mipi_tx_probe,