drm/amd/display: Proper de-allocation of OPP
authorJoshua Aberback <Joshua.Aberback@amd.com>
Tue, 17 Jan 2017 21:01:35 +0000 (16:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:11:42 +0000 (17:11 -0400)
commit4d35b093e635de739d0bdcbb57244424cb1abb61
tree34be11212c3e69c11035075ddef2bf08a84cb74c
parent9c1a57d79dbc96e808ea81aa1385f2d9d03570a0
drm/amd/display: Proper de-allocation of OPP

- refactor opp_destroy functions to dce common file
  - fixes memory leak, dce specific variations didn't free regamma_params
- remove unused dce110_regamma structure

Signed-off-by: Joshua Aberback <Joshua.Aberback@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
drivers/gpu/drm/amd/display/dc/dce/dce_opp.h
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c