From a59f02e7431ac86a8ddd0f69ba0cb7e8b601855e Mon Sep 17 00:00:00 2001 From: David Rokhvarg Date: Tue, 2 Feb 2016 13:35:35 -0500 Subject: [PATCH 0760/1110] drm/amd/dal: Fix DKMS compilation for kernel 3.19. Signed-off-by: David Rokhvarg Acked-by: Harry Wentland --- drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c index a8350e6..3f80880 100644 --- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c +++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c @@ -24,6 +24,8 @@ */ #include +#include + #include #include #include @@ -1536,8 +1538,10 @@ int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, if (!primary_plane) goto fail_plane; - /* this flag is used in legacy code only */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) + /* this flag doesn't exist in older kernels */ primary_plane->format_default = true; +#endif res = drm_universal_plane_init( dm->adev->ddev, -- 2.7.4