aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/os_types.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-10-03 12:38:57 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-10-06 13:08:55 -0400
commit93052132568aedb5eda04deae51d6034738a4800 (patch)
tree1687927f5b0cb97f0a6439893fba65ad1eb53cfc /drivers/gpu/drm/amd/display/dc/os_types.h
parentamdgpu/dc: kill a bunch of dead code. (diff)
downloadlinux-dev-93052132568aedb5eda04deae51d6034738a4800.tar.xz
linux-dev-93052132568aedb5eda04deae51d6034738a4800.zip
amdgpu/dc: convert dc_transfer to use a kref.
Rolling your own atomic ref counts is frowned upon. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h b/drivers/gpu/drm/amd/display/dc/os_types.h
index 27ed2a61c3c8..e0cd5278aae8 100644
--- a/drivers/gpu/drm/amd/display/dc/os_types.h
+++ b/drivers/gpu/drm/amd/display/dc/os_types.h
@@ -32,6 +32,8 @@
#include <linux/types.h>
#include <drm/drmP.h>
+#include <linux/kref.h>
+
#include "cgs_linux.h"
#if defined(__BIG_ENDIAN) && !defined(BIGENDIAN_CPU)