Browse Source

drm/amd/display: Leave DCN config guard around fpu header

See
https://lists.freedesktop.org/archives/dri-devel/2017-August/149938.html

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Harry Wentland 8 years ago
parent
commit
b4c8e6da39
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gpu/drm/amd/display/dc/dm_services.h

+ 2 - 0
drivers/gpu/drm/amd/display/dc/dm_services.h

@@ -75,7 +75,9 @@
 	BREAK_TO_DEBUGGER(); \
 	BREAK_TO_DEBUGGER(); \
 } while (0)
 } while (0)
 
 
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include <asm/fpu/api.h>
 #include <asm/fpu/api.h>
+#endif
 
 
 #define dm_alloc(size) kzalloc(size, GFP_KERNEL)
 #define dm_alloc(size) kzalloc(size, GFP_KERNEL)
 #define dm_realloc(ptr, size) krealloc(ptr, size, GFP_KERNEL)
 #define dm_realloc(ptr, size) krealloc(ptr, size, GFP_KERNEL)