summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mediatek/mtk_hdmi.c
diff options
context:
space:
mode:
authorInki Dae2017-07-03 10:42:29 +0200
committerArchit Taneja2017-08-21 05:19:24 +0200
commite691009154b43f9269cd4ca04c92a7f0558472b2 (patch)
tree76bb4f2394655a17cd8cba6b49829af519158eb0 /drivers/gpu/drm/mediatek/mtk_hdmi.c
parentdma-buf/sync_file: document flags field (diff)
downloadkernel-qcow2-linux-e691009154b43f9269cd4ca04c92a7f0558472b2.tar.gz
kernel-qcow2-linux-e691009154b43f9269cd4ca04c92a7f0558472b2.tar.xz
kernel-qcow2-linux-e691009154b43f9269cd4ca04c92a7f0558472b2.zip
drm/mediatek: hdmi: clean up drm_bridge_add call
This patch removes unnecessary checking of return value. Acked-by: CK Hu <ck.hu@mediatek.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Archit Taneja <architt@codeaurora.org> Link: https://patchwork.freedesktop.org/patch/msgid/1499071350-25168-14-git-send-email-inki.dae@samsung.com
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_hdmi.c')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_hdmi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c
index 690c67507cbc..3ff502771ba2 100644
--- a/drivers/gpu/drm/mediatek/mtk_hdmi.c
+++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c
@@ -1696,11 +1696,7 @@ static int mtk_drm_hdmi_probe(struct platform_device *pdev)
hdmi->bridge.funcs = &mtk_hdmi_bridge_funcs;
hdmi->bridge.of_node = pdev->dev.of_node;
- ret = drm_bridge_add(&hdmi->bridge);
- if (ret) {
- dev_err(dev, "failed to add bridge, ret = %d\n", ret);
- return ret;
- }
+ drm_bridge_add(&hdmi->bridge);
ret = mtk_hdmi_clk_enable_audio(hdmi);
if (ret) {