]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 13 Oct 2018 10:21:40 +0000 (13:21 +0300)
committerInki Dae <inki.dae@samsung.com>
Mon, 5 Nov 2018 07:37:24 +0000 (16:37 +0900)
commit8f89454cf4f983b347fd7f0e137cf5c7af841e3d
tree01a727bd242a4f57530f050570aac9393bf99e8f
parentf630c74755763954e46ada22cb887770a3c4fdd4
drm/exynos: checking for NULL instead of IS_ERR()

The of_drm_find_panel() function returns error pointers and never NULL
but we the driver assumes that ->panel is NULL when it's not present.

Fixes: f269ccce24ac ("drm/exynos: move connector creation to attach callback")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c