From: Dave Stevenson Date: Mon, 8 Nov 2021 18:25:49 +0000 (+0000) Subject: drm/vc4: Only add gamma properties once. X-Git-Tag: submit/tizen/20220208.074352~435 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19df5cc4ec1961b5db0530dfcc6e75cba9465ab7;p=platform%2Fkernel%2Flinux-rpi.git drm/vc4: Only add gamma properties once. Two calls were made to drm_crtc_enable_color_mgmt to add gamma and CTM, however they were both set to add the gamma properties, so they ended up added twice. Fixes: 766cc6b1f7fc "drm/vc4: Add CTM support" Signed-off-by: Dave Stevenson --- diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 9a18e69..b6b41b3 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -1223,7 +1223,7 @@ int vc4_crtc_init(struct drm_device *drm, struct vc4_crtc *vc4_crtc, /* We support CTM, but only for one CRTC at a time. It's therefore * implemented as private driver state in vc4_kms, not here. */ - drm_crtc_enable_color_mgmt(crtc, 0, true, crtc->gamma_size); + drm_crtc_enable_color_mgmt(crtc, 0, true, 0); /* Initialize the VC4 gamma LUTs */ for (i = 0; i < crtc->gamma_size; i++) {