mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
amdgpu/dc: make dce80 timing generator construct return void.
Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
5fb005c458
commit
99913a171d
|
|
@ -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))
|
||||
return &tg110->base;
|
||||
|
||||
BREAK_TO_DEBUGGER();
|
||||
kfree(tg110);
|
||||
return NULL;
|
||||
dce80_timing_generator_construct(tg110, ctx, instance, offsets);
|
||||
return &tg110->base;
|
||||
}
|
||||
|
||||
static struct output_pixel_processor *dce80_opp_create(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user