summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-08-05 10:30:11 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:16:24 -0400
commit0627bbd30f87e06987cb38aee557b06414ae3735 (patch)
tree4bcf608487912b1e8f3dcdeabc9663f895e4b44c
parent8a5d82451e297fc3864bb9ab0247b53c7ab8a022 (diff)
drm/amd/display: Use public plane destroy helper
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index b0fcfebc04b8..3aab3d233a52 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -2835,8 +2835,7 @@ void dm_drm_plane_destroy_state(struct drm_plane *plane,
if (dm_plane_state->dc_state)
dc_plane_state_release(dm_plane_state->dc_state);
- __drm_atomic_helper_plane_destroy_state(state);
- kfree(dm_plane_state);
+ drm_atomic_helper_plane_destroy_state(plane, state);
}
static const struct drm_plane_funcs dm_plane_funcs = {