]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mcde: dsi: Fix return value check in mcde_dsi_bind()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 30 Apr 2020 07:31:45 +0000 (07:31 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2020 11:48:24 +0000 (13:48 +0200)
commit053208378985231455c8b69d82755ed425c1de89
tree861ffee59017444b3422fde5f8f6fd66e1c146ca
parentd69c307c5d5228649c7f80027762e23eee30d4f4
drm/mcde: dsi: Fix return value check in mcde_dsi_bind()

The of_drm_find_bridge() function returns NULL on error, it doesn't return
error pointers so this check doesn't work.

Fixes: b54b2b95e2dd ("drm/mcde: Add new driver for ST-Ericsson MCDE")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200430073145.52321-1-weiyongjun1@huawei.com
drivers/gpu/drm/mcde/mcde_dsi.c