mtk_dp.c initializes an MMIO regmap using devm_regmap_init_mmio(),
but DRM_MEDIATEK_DP does not select REGMAP_MMIO. The driver can
therefore be enabled without the required register-transport
implementation and fail to build.

Select REGMAP_MMIO so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
Signed-off-by: Pengpeng Hou <[email protected]>
---
AI assistance: gpt 5 (patch preparation and review).

 drivers/gpu/drm/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig
index ad8c8b8..31f2aad 100644
--- a/drivers/gpu/drm/mediatek/Kconfig
+++ b/drivers/gpu/drm/mediatek/Kconfig
@@ -27,6 +27,7 @@ config DRM_MEDIATEK_DP
        select DRM_DISPLAY_HELPER
        select DRM_DISPLAY_DP_HELPER
        select DRM_DISPLAY_DP_AUX_BUS
+       select REGMAP_MMIO
        help
          DRM/KMS Display Port driver for MediaTek SoCs.
 

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244

Reply via email to