[PATCH] drm/amd/display: fix the build when DRM_AMD_DC_DCN is not set

Harry Wentland harry.wentland at amd.com
Wed Nov 16 21:19:09 UTC 2022


On 11/16/22 11:58, Alex Deucher wrote:
> Move the new callback outside of the guard.
> 
> Fixes: dc55b106ad47 ("drm/amd/display: Disable phantom OTG after enable for plane disable")
> CC: Alvin Lee <Alvin.Lee2 at amd.com>
> CC: Alan Liu <HaoPing.Liu at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Harry Wentland <harry.wentland at amd.com>

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h b/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h
> index 43eb61961e0f..0e42e721dd15 100644
> --- a/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h
> +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h
> @@ -184,8 +184,8 @@ struct timing_generator_funcs {
>  	bool (*disable_crtc)(struct timing_generator *tg);
>  #ifdef CONFIG_DRM_AMD_DC_DCN
>  	void (*phantom_crtc_post_enable)(struct timing_generator *tg);
> -	void (*disable_phantom_crtc)(struct timing_generator *tg);
>  #endif
> +	void (*disable_phantom_crtc)(struct timing_generator *tg);
>  	bool (*immediate_disable_crtc)(struct timing_generator *tg);
>  	bool (*is_counter_moving)(struct timing_generator *tg);
>  	void (*get_position)(struct timing_generator *tg,



More information about the amd-gfx mailing list