Skip to content

Commit c7d586c

Browse files
lumaggregkh
authored andcommitted
drm/msm: add missing MODULE_DEVICE_ID definitions
[ Upstream commit b21e854 ] 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: 060530f ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3441e4b commit c7d586c

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/gpu/drm/msm/dp/dp_display.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ static const struct of_device_id msm_dp_dt_match[] = {
201201
{ .compatible = "qcom,x1e80100-dp", .data = &msm_dp_desc_x1e80100 },
202202
{}
203203
};
204+
MODULE_DEVICE_TABLE(of, msm_dp_dt_match);
204205

205206
static struct msm_dp_display_private *dev_get_dp_display_private(struct device *dev)
206207
{

drivers/gpu/drm/msm/dsi/dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ static const struct of_device_id dt_match[] = {
198198
{ .compatible = "qcom,dsi-ctrl-6g-qcm2290" },
199199
{}
200200
};
201+
MODULE_DEVICE_TABLE(of, dt_match);
201202

202203
static const struct dev_pm_ops dsi_pm_ops = {
203204
SET_RUNTIME_PM_OPS(msm_dsi_runtime_suspend, msm_dsi_runtime_resume, NULL)

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ static const struct of_device_id dsi_phy_dt_match[] = {
580580
#endif
581581
{}
582582
};
583+
MODULE_DEVICE_TABLE(of, dsi_phy_dt_match);
583584

584585
/*
585586
* Currently, we only support one SoC for each PHY type. When we have multiple

drivers/gpu/drm/msm/hdmi/hdmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ static const struct of_device_id msm_hdmi_dt_match[] = {
441441
{ .compatible = "qcom,hdmi-tx-8660", .data = &hdmi_tx_8960_config },
442442
{}
443443
};
444+
MODULE_DEVICE_TABLE(of, msm_hdmi_dt_match);
444445

445446
static struct platform_driver msm_hdmi_driver = {
446447
.probe = msm_hdmi_dev_probe,

drivers/gpu/drm/msm/hdmi/hdmi_phy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ static const struct of_device_id msm_hdmi_phy_dt_match[] = {
204204
.data = &msm_hdmi_phy_8998_cfg },
205205
{}
206206
};
207+
MODULE_DEVICE_TABLE(of, msm_hdmi_phy_dt_match);
207208

208209
static struct platform_driver msm_hdmi_phy_platform_driver = {
209210
.probe = msm_hdmi_phy_probe,

0 commit comments

Comments
 (0)