aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0760-drm-amd-dal-Fix-DKMS-compilation-for-kernel-3.19.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0760-drm-amd-dal-Fix-DKMS-compilation-for-kernel-3.19.patch')
-rw-r--r--common/recipes-kernel/linux/files/0760-drm-amd-dal-Fix-DKMS-compilation-for-kernel-3.19.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0760-drm-amd-dal-Fix-DKMS-compilation-for-kernel-3.19.patch b/common/recipes-kernel/linux/files/0760-drm-amd-dal-Fix-DKMS-compilation-for-kernel-3.19.patch
new file mode 100644
index 00000000..a7f34f03
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0760-drm-amd-dal-Fix-DKMS-compilation-for-kernel-3.19.patch
@@ -0,0 +1,39 @@
+From a59f02e7431ac86a8ddd0f69ba0cb7e8b601855e Mon Sep 17 00:00:00 2001
+From: David Rokhvarg <david.rokhvarg@amd.com>
+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 <David.Rokhvarg@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ 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 <linux/types.h>
++#include <linux/version.h>
++
+ #include <drm/drmP.h>
+ #include <drm/drm_atomic_helper.h>
+ #include <drm/drm_fb_helper.h>
+@@ -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
+