[PATCH 46/76] drm/amd/dal: Remove unused function from dc

Harry Wentland harry.wentland at amd.com
Mon Nov 21 23:01:06 UTC 2016


From: Ding Wang <Ding.Wang at amd.com>

Signed-off-by: Ding Wang <Ding.Wang at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc.c     | 8 --------
 drivers/gpu/drm/amd/dal/dc/dm_services.h | 3 ---
 2 files changed, 11 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc.c b/drivers/gpu/drm/amd/dal/dc/core/dc.c
index 76e6e5d3f98e..d7721c218017 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c
@@ -902,12 +902,6 @@ static bool targets_changed(
 	return false;
 }
 
-void pplib_apply_safe_state(
-	const struct core_dc *dc)
-{
-	dm_pp_apply_safe_state(dc->ctx);
-}
-
 static void fill_display_configs(
 	const struct validate_context *context,
 	struct dm_pp_display_configuration *pp_display_cfg)
@@ -1110,8 +1104,6 @@ bool dc_commit_targets(
 		goto fail;
 	}
 
-	pplib_apply_safe_state(core_dc);
-
 	if (!dcb->funcs->is_accelerated_mode(dcb)) {
 		core_dc->hwss.enable_accelerated_mode(core_dc);
 	}
diff --git a/drivers/gpu/drm/amd/dal/dc/dm_services.h b/drivers/gpu/drm/amd/dal/dc/dm_services.h
index 04349c723e2e..016df3468a12 100644
--- a/drivers/gpu/drm/amd/dal/dc/dm_services.h
+++ b/drivers/gpu/drm/amd/dal/dc/dm_services.h
@@ -215,9 +215,6 @@ bool dm_pp_notify_wm_clock_changes(
 	const struct dc_context *ctx,
 	struct dm_pp_wm_sets_with_clock_ranges *wm_with_clock_ranges);
 
-bool dm_pp_apply_safe_state(
-		const struct dc_context *ctx);
-
 /* DAL calls this function to notify PP about completion of Mode Set.
  * For PP it means that current DCE clocks are those which were returned
  * by dc_service_pp_pre_dce_clock_change(), in the 'output' parameter.
-- 
2.10.1



More information about the amd-gfx mailing list