linux/drivers/gpu/drm/mediatek
Johan Hovold 9ba2556cef drm/mediatek: clean up driver data initialisation
The platform and drm devices are only used to look up the drm device and
its driver data respectively when initialising the driver data during
bind().

Drop the reference counts as soon as they have been used to make the
code more readable.

Note that the crtc count is never incremented on lookup failures.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250829090345.21075-3-johan@kernel.org/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
2025-09-10 12:52:59 +00:00
..
Kconfig
Makefile drm/mediatek: mtk_hdmi_ddc: Switch to register as module_platform_driver 2025-04-21 12:27:55 +00:00
mtk_cec.c drm/mediatek: mtk_cec: Switch to register as module_platform_driver 2025-04-17 23:26:14 +00:00
mtk_cec.h
mtk_crtc.c drm/mediatek: only announce AFBC if really supported 2025-07-17 23:19:05 +00:00
mtk_crtc.h drm/mediatek: Add wait_event_timeout when disabling plane 2025-07-17 23:18:53 +00:00
mtk_ddp_comp.c drm/mediatek: only announce AFBC if really supported 2025-07-17 23:19:05 +00:00
mtk_ddp_comp.h drm/mediatek: only announce AFBC if really supported 2025-07-17 23:19:05 +00:00
mtk_disp_aal.c
mtk_disp_ccorr.c
mtk_disp_color.c drm/mediatek: Move to devm_platform_ioremap_resource() usage 2025-03-02 14:59:55 +00:00
mtk_disp_drv.h drm/mediatek: only announce AFBC if really supported 2025-07-17 23:19:05 +00:00
mtk_disp_gamma.c drm/mediatek: Move to devm_platform_ioremap_resource() usage 2025-03-02 14:59:55 +00:00
mtk_disp_merge.c drm/mediatek: Move to devm_platform_ioremap_resource() usage 2025-03-02 14:59:55 +00:00
mtk_disp_ovl.c drm/mediatek: only announce AFBC if really supported 2025-07-17 23:19:05 +00:00
mtk_disp_ovl_adaptor.c drm/mediatek: Replace custom compare_dev with component_compare_of 2025-05-14 23:12:24 +00:00
mtk_disp_rdma.c drm/mediatek: Move to devm_platform_ioremap_resource() usage 2025-03-02 14:59:55 +00:00
mtk_dp.c drm/bridge: Pass down connector to drm bridge detect hook 2025-07-14 18:23:18 +03:00
mtk_dp_reg.h
mtk_dpi.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
mtk_dpi_regs.h drm/mediatek: Add support for MT8195 Digital Parallel Interface 2025-03-02 14:11:09 +00:00
mtk_drm_drv.c drm/mediatek: clean up driver data initialisation 2025-09-10 12:52:59 +00:00
mtk_drm_drv.h
mtk_dsi.c drm/mediatek: dsi: Fix DSI host and panel bridge pre-enable order 2025-08-14 14:07:06 +00:00
mtk_ethdr.c
mtk_ethdr.h
mtk_gem.c
mtk_gem.h
mtk_hdmi.c drm/mediatek: mtk_hdmi: Fix inverted parameters in some regmap_update_bits calls 2025-08-28 23:15:41 +00:00
mtk_hdmi_ddc.c drm/mediatek: mtk_hdmi_ddc: Switch to register as module_platform_driver 2025-04-21 12:27:55 +00:00
mtk_hdmi_regs.h
mtk_mdp_rdma.c drm/mediatek: Move to devm_platform_ioremap_resource() usage 2025-03-02 14:59:55 +00:00
mtk_mdp_rdma.h
mtk_padding.c
mtk_plane.c drm/mediatek: Add error handling for old state CRTC in atomic_disable 2025-08-13 23:50:06 +00:00
mtk_plane.h drm/mediatek: only announce AFBC if really supported 2025-07-17 23:19:05 +00:00