linux-sg2042/drivers/gpu/drm/mediatek
yt.shen@mediatek.com 5ac5895a84 drm/mediatek: separate color module to fixup error memory reallocation
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>
2017-06-27 17:34:53 +08:00
..
Kconfig drm/mediatek: add ARM_SMCCC dependency 2016-08-11 08:42:01 +02:00
Makefile drm/mediatek: separate color module to fixup error memory reallocation 2017-06-27 17:34:53 +08:00
mtk_cec.c drm/mediatek: Add HDMI support 2016-06-16 16:30:38 +02:00
mtk_cec.h drm/mediatek: Add HDMI support 2016-06-16 16:30:38 +02:00
mtk_disp_color.c drm/mediatek: separate color module to fixup error memory reallocation 2017-06-27 17:34:53 +08:00
mtk_disp_ovl.c drm/mediatek: Support UYVY and YUYV format for overlay 2017-06-27 17:34:52 +08:00
mtk_disp_rdma.c drm/mediatek: add support for Mediatek SoC MT2701 2017-04-08 00:02:17 +08:00
mtk_dpi.c drm: convert drivers to use of_graph_get_remote_node 2017-04-06 17:00:27 -04:00
mtk_dpi_regs.h drm/mediatek: Add DPI sub driver 2016-05-06 17:47:38 +02:00
mtk_drm_crtc.c drm/mediatek: check for memory allocation failure 2017-06-27 17:34:53 +08:00
mtk_drm_crtc.h drm: mediatek: use vblank hooks in struct drm_crtc_funcs 2017-02-21 11:17:54 -05:00
mtk_drm_ddp.c drm/mediatek: add support for Mediatek SoC MT2701 2017-04-08 00:02:17 +08:00
mtk_drm_ddp.h drm/mediatek: add shadow register support 2017-04-08 00:02:13 +08:00
mtk_drm_ddp_comp.c drm/mediatek: separate color module to fixup error memory reallocation 2017-06-27 17:34:53 +08:00
mtk_drm_ddp_comp.h drm/mediatek: add BLS component 2017-04-08 00:02:13 +08:00
mtk_drm_drv.c drm/mediatek: separate color module to fixup error memory reallocation 2017-06-27 17:34:53 +08:00
mtk_drm_drv.h drm/mediatek: separate color module to fixup error memory reallocation 2017-06-27 17:34:53 +08:00
mtk_drm_fb.c drm: Pass 'dev' to drm_helper_mode_fill_fb_struct() 2016-12-15 14:03:30 +02:00
mtk_drm_fb.h
mtk_drm_gem.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
mtk_drm_gem.h dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
mtk_drm_plane.c drm/mediatek: Support UYVY and YUYV format for overlay 2017-06-27 17:34:52 +08:00
mtk_drm_plane.h drm/mediatek: Remove mtk_drm_plane 2016-08-08 14:20:00 -04:00
mtk_dsi.c drm/mediatek: re-phrase DRM_INFO error message 2017-06-27 17:34:53 +08:00
mtk_hdmi.c drm/mediatek: use platform_register_drivers 2017-06-27 17:34:53 +08:00
mtk_hdmi.h drm/mediatek: Add HDMI support 2016-06-16 16:30:38 +02:00
mtk_hdmi_ddc.c drm/mediatek: Add HDMI support 2016-06-16 16:30:38 +02:00
mtk_hdmi_regs.h drm/mediatek: enable hdmi output control bit 2016-06-16 16:30:38 +02:00
mtk_mipi_tx.c drm/mediatek: add support for Mediatek SoC MT2701 2017-04-08 00:02:17 +08:00
mtk_mt8173_hdmi_phy.c drm/mediatek: enhance the HDMI driving current 2016-10-19 09:06:53 +08:00