Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/exynos: Search for TE-gpio in DSI panel's node

TE-gpio, if defined, is placed in the panel's node, not the parent DSI
node. Change the devm_gpiod_get_optional() to gpiod_get_optional() and
pass proper device node to it. The code already has a proper cleanup
path, so it looks that the devm_* variant has been applied accidentally
during the conversion to gpiod API.

Fixes: ee6c8b5afa62 ("drm/exynos: Replace legacy gpio interface for gpiod interface")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixed a typo.
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Marek Szyprowski and committed by
Inki Dae
fedc8982 8e3fa9d8

+1 -1
+1 -1
drivers/gpu/drm/exynos/exynos_drm_dsi.c
··· 1335 1335 int ret; 1336 1336 int te_gpio_irq; 1337 1337 1338 - dsi->te_gpio = devm_gpiod_get_optional(dsi->dev, "te", GPIOD_IN); 1338 + dsi->te_gpio = gpiod_get_optional(panel, "te", GPIOD_IN); 1339 1339 if (!dsi->te_gpio) { 1340 1340 return 0; 1341 1341 } else if (IS_ERR(dsi->te_gpio)) {