aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0559-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0559-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch')
-rw-r--r--common/recipes-kernel/linux/files/0559-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0559-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch b/common/recipes-kernel/linux/files/0559-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch
new file mode 100644
index 00000000..505042cf
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0559-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch
@@ -0,0 +1,29 @@
+From 4bca918aa5fa121fd55af8053fe27b0d6acbfe7b Mon Sep 17 00:00:00 2001
+From: Mykola Lysenko <Mykola.Lysenko@amd.com>
+Date: Wed, 2 Dec 2015 11:05:23 +0800
+Subject: [PATCH 0559/1110] drm/amd/dal: fix compilation error if PPLib is not
+ enabled
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dal_services.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dal_services.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dal_services.c
+index ba54282..3b97b64 100644
+--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dal_services.c
++++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dal_services.c
+@@ -204,7 +204,9 @@ bool dc_service_get_system_clocks_range(
+ struct dc_context *ctx,
+ struct dal_system_clock_range *sys_clks)
+ {
++#ifdef CONFIG_DRM_AMD_POWERPLAY
+ struct amdgpu_device *adev = ctx->driver_context;
++#endif
+
+ /* Default values, in case PPLib is not compiled-in. */
+ sys_clks->max_mclk = 80000;
+--
+2.7.4
+