summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce80
diff options
context:
space:
mode:
authorDave Airlie2017-09-29 05:15:57 +0200
committerAlex Deucher2017-09-29 19:01:36 +0200
commitc60ae11201caff8b0c5c23e4349bf42388e3828b (patch)
tree3f8d37fdfd704828047bd21dc258b9795ed8fcba /drivers/gpu/drm/amd/display/dc/dce80
parentamdgpu/dc: make stream encoder constructor return void. (diff)
downloadkernel-qcow2-linux-c60ae11201caff8b0c5c23e4349bf42388e3828b.tar.gz
kernel-qcow2-linux-c60ae11201caff8b0c5c23e4349bf42388e3828b.tar.xz
kernel-qcow2-linux-c60ae11201caff8b0c5c23e4349bf42388e3828b.zip
amdgpu/dc: make link encoder construct void.
This only ever returned true. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce80')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
index 0b309acab6b1..3603ae93cd72 100644
--- a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
@@ -567,20 +567,13 @@ struct link_encoder *dce80_link_encoder_create(
if (!enc110)
return NULL;
- if (dce110_link_encoder_construct(
- enc110,
- enc_init_data,
- &link_enc_feature,
- &link_enc_regs[enc_init_data->transmitter],
- &link_enc_aux_regs[enc_init_data->channel - 1],
- &link_enc_hpd_regs[enc_init_data->hpd_source])) {
-
- return &enc110->base;
- }
-
- BREAK_TO_DEBUGGER();
- kfree(enc110);
- return NULL;
+ dce110_link_encoder_construct(enc110,
+ enc_init_data,
+ &link_enc_feature,
+ &link_enc_regs[enc_init_data->transmitter],
+ &link_enc_aux_regs[enc_init_data->channel - 1],
+ &link_enc_hpd_regs[enc_init_data->hpd_source]);
+ return &enc110->base;
}
struct clock_source *dce80_clock_source_create(