diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0866-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0866-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0866-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0866-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch new file mode 100644 index 00000000..b417b026 --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0866-drm-amd-dal-fix-compilation-error-if-PPLib-is-not-en.patch @@ -0,0 +1,30 @@ +From 37f7ac8ba542d4ec607478733ba097dd93f577e1 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 0866/1050] drm/amd/dal: fix compilation error if PPLib is not + enabled + +Change-Id: I71f04170c785bce96d01c2e3d6822fd186eabacc +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; +-- +1.9.1 + |