]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/msm: add missing MODULE_DEVICE_ID definitions
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sat, 28 Feb 2026 17:20:37 +0000 (19:20 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 25 Mar 2026 06:06:03 +0000 (08:06 +0200)
The drm/msm module bundles several drivers, each of them having a
separate OF match table, however only MDSS (subsystem), KMS devices and
GPU have corresponding MODULE_DEVICE_ID tables.

Add MODULE_DEVICE_ID to the display-related driver and to all other
drivers in this module, simplifying userspace job.

Fixes: 060530f1ea67 ("drm/msm: use componentised device support")
Reported-by: Loïc Minier <loic.minier@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/707960/
Link: https://lore.kernel.org/r/20260228-msm-device-id-v2-1-24b085919444@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/dp/dp_display.c
drivers/gpu/drm/msm/dsi/dsi.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
drivers/gpu/drm/msm/hdmi/hdmi.c
drivers/gpu/drm/msm/hdmi/hdmi_phy.c

index a082f4d3ebe27d6fb17fe340d8b1096d21aa50ec..0d8cb362fb0ea834203d93713e8a9d0ffd7d31c0 100644 (file)
@@ -210,6 +210,7 @@ static const struct of_device_id msm_dp_dt_match[] = {
        { .compatible = "qcom,x1e80100-dp", .data = &msm_dp_desc_x1e80100 },
        {}
 };
+MODULE_DEVICE_TABLE(of, msm_dp_dt_match);
 
 static struct msm_dp_display_private *dev_get_dp_display_private(struct device *dev)
 {
index d8bb40ef820e2b8c8ac933ca01e1dc46f087a218..3c9f01ed62713313b2cfe8147415bc8733247cb7 100644 (file)
@@ -198,6 +198,7 @@ static const struct of_device_id dt_match[] = {
        { .compatible = "qcom,dsi-ctrl-6g-qcm2290" },
        {}
 };
+MODULE_DEVICE_TABLE(of, dt_match);
 
 static const struct dev_pm_ops dsi_pm_ops = {
        SET_RUNTIME_PM_OPS(msm_dsi_runtime_suspend, msm_dsi_runtime_resume, NULL)
index 7937266de1d28fcf842ca05e612b51fb728c0a8d..c59375aaae19740275c05a532ecb465af463cfe3 100644 (file)
@@ -582,6 +582,7 @@ static const struct of_device_id dsi_phy_dt_match[] = {
 #endif
        {}
 };
+MODULE_DEVICE_TABLE(of, dsi_phy_dt_match);
 
 /*
  * Currently, we only support one SoC for each PHY type. When we have multiple
index 5afac09c0d3347f85a3449207b3c876aae4dd1e2..d5ef5089c9e9c46201d5f84e38e883a69d477042 100644 (file)
@@ -441,6 +441,7 @@ static const struct of_device_id msm_hdmi_dt_match[] = {
        { .compatible = "qcom,hdmi-tx-8660", .data = &hdmi_tx_8960_config },
        {}
 };
+MODULE_DEVICE_TABLE(of, msm_hdmi_dt_match);
 
 static struct platform_driver msm_hdmi_driver = {
        .probe = msm_hdmi_dev_probe,
index 667573f1db7c6bfef6c75828b5c581c147a86d0d..f726555bb681053742afac20a18f78ddc75be01d 100644 (file)
@@ -204,6 +204,7 @@ static const struct of_device_id msm_hdmi_phy_dt_match[] = {
          .data = &msm_hdmi_phy_8998_cfg },
        {}
 };
+MODULE_DEVICE_TABLE(of, msm_hdmi_phy_dt_match);
 
 static struct platform_driver msm_hdmi_phy_platform_driver = {
        .probe      = msm_hdmi_phy_probe,