summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce110
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2022-04-25 13:22:55 -0600
committerAlex Deucher <alexander.deucher@amd.com>2022-05-10 17:53:12 -0400
commita58cda030231c5e6f70ef376975fbdf3dc0cfda3 (patch)
tree66b8f9aa700ff7b10aa71724e7aa39fc5210860f /drivers/gpu/drm/amd/display/dc/dce110
parent59b8ca2425486ab366bf64a575f161baae0dc760 (diff)
downloadlinux-a58cda030231c5e6f70ef376975fbdf3dc0cfda3.tar.gz
linux-a58cda030231c5e6f70ef376975fbdf3dc0cfda3.tar.bz2
linux-a58cda030231c5e6f70ef376975fbdf3dc0cfda3.zip
drm/amd/display: remove redundant CONFIG_DRM_AMD_DC_DCN in dce
[Why & How] CONFIG_DRM_AMD_DC_DCN is used by pass the compilation failures, but DC code should be OS-agnostic. This patch fixes it by removing unnecessasry CONFIG_DRM_AMD_DC_DCN in dce directory. Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce110')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index 9fc1ba12ec19..7eff7811769d 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -1365,11 +1365,9 @@ static void program_scaler(const struct dc *dc,
{
struct tg_color color = {0};
-#if defined(CONFIG_DRM_AMD_DC_DCN)
/* TOFPGA */
if (pipe_ctx->plane_res.xfm->funcs->transform_set_pixel_storage_depth == NULL)
return;
-#endif
if (dc->debug.visual_confirm == VISUAL_CONFIRM_SURFACE)
get_surface_visual_confirm_color(pipe_ctx, &color);