summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-09-24 14:31:51 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:17:44 -0400
commit4a6cee2ca142615970fa3334191e992e7fb51159 (patch)
treebb675d30665392563cff5ae390e7fadbae194573 /drivers/gpu/drm/amd
parentf1ad2f5efd29dc838222f37281675a2623714538 (diff)
drm/amd/display: Remove unused dc_validate_guaranteed function
It got refactored away and was never cleaned. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 75a5fa2296d7..58c5083bef2a 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -651,40 +651,6 @@ void dc_destroy(struct dc **dc)
*dc = NULL;
}
-bool dc_validate_guaranteed(
- struct dc *dc,
- struct dc_stream_state *stream)
-{
- enum dc_status result = DC_ERROR_UNEXPECTED;
- struct dc_state *context;
-
- if (!dc_validate_stream(dc, stream))
- return false;
-
- context = dm_alloc(sizeof(struct dc_state));
- if (context == NULL)
- goto context_alloc_fail;
-
- dc_resource_state_construct(dc, dc->current_state);
-
- atomic_inc(&context->ref_count);
-
- result = dc->res_pool->funcs->validate_guaranteed(
- dc, stream, context);
-
- dc_release_state(context);
-
-context_alloc_fail:
- if (result != DC_OK) {
- dm_logger_write(dc->ctx->logger, LOG_WARNING,
- "%s:guaranteed validation failed, dc_status:%d\n",
- __func__,
- result);
- }
-
- return (result == DC_OK);
-}
-
static void program_timing_sync(
struct dc *dc,
struct dc_state *ctx)