drm/mediatek: Only try to attach bridge if there is one
authorNicolas Boichat <drinkcat@chromium.org>
Mon, 26 Nov 2018 04:07:37 +0000 (12:07 +0800)
committerCK Hu <ck.hu@mediatek.com>
Mon, 3 Dec 2018 03:08:22 +0000 (11:08 +0800)
commita0071bc455da7b830b9517058933a83eb6cc902a
tree68bb0d9bcfd3bfcf9c2803185f4cd23224ff7b8f
parent651022382c7f8da46cb4872a545ee1da6d097d2a
drm/mediatek: Only try to attach bridge if there is one

Even if dsi->bridge is NULL, we still try to call drm_bridge_attach,
and print out an error message, before creating the connector.

When no bridge is provided, let's skip these 2 steps and directly
create the connector.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/mediatek/mtk_dsi.c