mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 02:26:52 +07:00
5ac5895a84
Previous patch (c5f228ef6c
drm/mediatek: add *driver_data for different hardware settings) calls devm_kfree() and then devm_kzalloc() to reallocate color module data structure. But this reallocation cannnot guarantee the new address is unchanged, but the caller will use the old address, which is wrong. Fix it by separate color module from general components, this patch separate color module to independent files, like mtk_disp_ovl.c and mtk_disp_rdma.c do Fixes:c5f228ef6c
("drm/mediatek: add *driver_data for different hardware settings") Signed-off-by: YT Shen <yt.shen@mediatek.com> Tested-by: Bibby Hsieh <bibby.hsieh@mediatek.com> Signed-off-by: CK Hu <ck.hu@mediatek>
23 lines
485 B
Makefile
23 lines
485 B
Makefile
mediatek-drm-y := mtk_disp_color.o \
|
|
mtk_disp_ovl.o \
|
|
mtk_disp_rdma.o \
|
|
mtk_drm_crtc.o \
|
|
mtk_drm_ddp.o \
|
|
mtk_drm_ddp_comp.o \
|
|
mtk_drm_drv.o \
|
|
mtk_drm_fb.o \
|
|
mtk_drm_gem.o \
|
|
mtk_drm_plane.o \
|
|
mtk_dsi.o \
|
|
mtk_mipi_tx.o \
|
|
mtk_dpi.o
|
|
|
|
obj-$(CONFIG_DRM_MEDIATEK) += mediatek-drm.o
|
|
|
|
mediatek-drm-hdmi-objs := mtk_cec.o \
|
|
mtk_hdmi.o \
|
|
mtk_hdmi_ddc.o \
|
|
mtk_mt8173_hdmi_phy.o
|
|
|
|
obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o
|