drm/amd/display: Use public plane destroy helper
authorHarry Wentland <harry.wentland@amd.com>
Sat, 5 Aug 2017 14:30:11 +0000 (10:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:16:24 +0000 (18:16 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index b0fcfebc04b8b1fecb0c1ce999699c8d8e780bd2..3aab3d233a529fc7bacb029cb0e835bf38d0ed7c 100644 (file)
@@ -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 = {