aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/os_types.h
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-11-15 19:27:37 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-14 10:53:20 -0500
commit963aa22dc983f11d19f0e106ee7d9fddb229abda (patch)
tree21a2921bcf63cf102a38127a65da4434d73e4baf /drivers/gpu/drm/amd/display/dc/os_types.h
parentdrm/amd/display: Fix access of wrong array element TF format conversion (diff)
downloadlinux-dev-963aa22dc983f11d19f0e106ee7d9fddb229abda.tar.xz
linux-dev-963aa22dc983f11d19f0e106ee7d9fddb229abda.zip
drm/amd/display: Clean up os_types.h a bit
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/os_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/os_types.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h b/drivers/gpu/drm/amd/display/dc/os_types.h
index a87c0329541f..68ce2ab8f455 100644
--- a/drivers/gpu/drm/amd/display/dc/os_types.h
+++ b/drivers/gpu/drm/amd/display/dc/os_types.h
@@ -26,8 +26,6 @@
#ifndef _OS_TYPES_H_
#define _OS_TYPES_H_
-#if defined __KERNEL__
-
#include <asm/byteorder.h>
#include <linux/types.h>
#include <drm/drmP.h>
@@ -54,6 +52,8 @@
#define dm_vlog(fmt, args) vprintk(fmt, args)
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
+#include <asm/fpu/api.h>
#endif
/*
@@ -89,8 +89,4 @@
BREAK_TO_DEBUGGER(); \
} while (0)
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
-#include <asm/fpu/api.h>
-#endif
-
#endif /* _OS_TYPES_H_ */