drm/amd/display: Stop leaking planes
authorHarry Wentland <harry.wentland@amd.com>
Sun, 7 Oct 2018 14:01:23 +0000 (10:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Nov 2018 19:02:31 +0000 (14:02 -0500)
commitbab45e44b131e529be750a8048e4d74cbaec1aa2
treebed90a2025dc053a203966c312b62b7f1ac45f8a
parentf180b4bccc89332cad420a192797bc5dfb1ab5ee
drm/amd/display: Stop leaking planes

[Why]
drm_plane_cleanup does not free the plane.

[How]
Call drm_primary_helper_destroy which will also free the plane.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c