Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99913a17 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

amdgpu/dc: make dce80 timing generator construct return void.

parent 5fb005c4
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -404,12 +404,8 @@ static struct timing_generator *dce80_timing_generator_create(
	if (!tg110)
		return NULL;

	if (dce80_timing_generator_construct(tg110, ctx, instance, offsets))
	dce80_timing_generator_construct(tg110, ctx, instance, offsets);
	return &tg110->base;

	BREAK_TO_DEBUGGER();
	kfree(tg110);
	return NULL;
}

static struct output_pixel_processor *dce80_opp_create(
+1 −6
Original line number Diff line number Diff line
@@ -152,15 +152,12 @@ static const struct timing_generator_funcs dce80_tg_funcs = {
				dce80_timing_generator_enable_advanced_request,
};

bool dce80_timing_generator_construct(
void dce80_timing_generator_construct(
	struct dce110_timing_generator *tg110,
	struct dc_context *ctx,
	uint32_t instance,
	const struct dce110_timing_generator_offsets *offsets)
{
	if (!tg110)
		return false;

	tg110->controller_id = CONTROLLER_ID_D0 + instance;
	tg110->base.inst = instance;
	tg110->offsets = *offsets;
@@ -177,8 +174,6 @@ bool dce80_timing_generator_construct(
	tg110->min_h_blank = 56;
	tg110->min_h_front_porch = 4;
	tg110->min_h_back_porch = 4;

	return true;
}

void dce80_timing_generator_enable_advanced_request(
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
#include "../include/grph_object_id.h"

/* DCE8.0 implementation inherits from DCE11.0 */
bool dce80_timing_generator_construct(
void dce80_timing_generator_construct(
	struct dce110_timing_generator *tg,
	struct dc_context *ctx,
	uint32_t instance,