]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit761e9f4f80a21a4b845097027030bef863001636
tree861ffee59017444b3422fde5f8f6fd66e1c146ca
parent81a15b9a65565dc819c909512c9d83620b33e7ec
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: 5fc537bfd000 ("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