]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: Don't fail if no TE-gpio is defined for DSI driver
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 21 Jan 2022 10:00:39 +0000 (11:00 +0100)
committerInki Dae <inki.dae@samsung.com>
Fri, 25 Feb 2022 00:50:47 +0000 (09:50 +0900)
commit654558c5329be7b9dec6064cbd54689f22938990
treef3a714bd906079e35fdc65567e14f0c39d92bbc5
parent7cf6702913db3b47a0d7d73ae63a06128126645b
drm/exynos: Don't fail if no TE-gpio is defined for DSI driver

TE-gpio is optional and if it is not found then gpiod_get_optional()
returns NULL. In such case the code will continue and try to convert NULL
gpiod to irq what in turn fails. The failure is then propagated and driver
is not registered.

Fix this by returning early from exynos_dsi_register_te_irq() if no
TE-gpio is found.

Fixes: ba71f264941c ("drm/exynos: Replace legacy gpio interface for gpiod interface")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c