mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 14:02:06 -04:00
amdgpu/dc: another round of dce/dcn construct cleanups.
This removes any remaining pointless return codepaths from the DCE code. 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:
committed by
Alex Deucher
parent
0e1c42fd18
commit
c13b408b81
@@ -245,7 +245,7 @@ static void dce120_update_dchub(
|
||||
|
||||
|
||||
|
||||
bool dce120_hw_sequencer_construct(struct dc *dc)
|
||||
void dce120_hw_sequencer_construct(struct dc *dc)
|
||||
{
|
||||
/* All registers used by dce11.2 match those in dce11 in offset and
|
||||
* structure
|
||||
@@ -253,7 +253,5 @@ bool dce120_hw_sequencer_construct(struct dc *dc)
|
||||
dce110_hw_sequencer_construct(dc);
|
||||
dc->hwss.enable_display_power_gating = dce120_enable_display_power_gating;
|
||||
dc->hwss.update_dchub = dce120_update_dchub;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
struct dc;
|
||||
|
||||
bool dce120_hw_sequencer_construct(struct dc *dc);
|
||||
void dce120_hw_sequencer_construct(struct dc *dc);
|
||||
|
||||
#endif /* __DC_HWSS_DCE112_H__ */
|
||||
|
||||
|
||||
@@ -429,12 +429,8 @@ static struct timing_generator *dce120_timing_generator_create(
|
||||
if (!tg110)
|
||||
return NULL;
|
||||
|
||||
if (dce120_timing_generator_construct(tg110, ctx, instance, offsets))
|
||||
return &tg110->base;
|
||||
|
||||
BREAK_TO_DEBUGGER();
|
||||
kfree(tg110);
|
||||
return NULL;
|
||||
dce120_timing_generator_construct(tg110, ctx, instance, offsets);
|
||||
return &tg110->base;
|
||||
}
|
||||
|
||||
static void dce120_transform_destroy(struct transform **xfm)
|
||||
|
||||
@@ -1143,15 +1143,12 @@ static const struct timing_generator_funcs dce120_tg_funcs = {
|
||||
};
|
||||
|
||||
|
||||
bool dce120_timing_generator_construct(
|
||||
void dce120_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;
|
||||
|
||||
@@ -1175,6 +1172,4 @@ bool dce120_timing_generator_construct(
|
||||
tg110->min_h_sync_width = 8;
|
||||
tg110->min_v_sync_width = 1;
|
||||
tg110->min_v_blank = 3;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "dce110/dce110_timing_generator.h"
|
||||
|
||||
|
||||
bool dce120_timing_generator_construct(
|
||||
void dce120_timing_generator_construct(
|
||||
struct dce110_timing_generator *tg110,
|
||||
struct dc_context *ctx,
|
||||
uint32_t instance,
|
||||
|
||||
Reference in New Issue
Block a user