Skip to content

Commit fedc898

Browse files
mszyprowdaeinki
authored andcommitted
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: ee6c8b5 ("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>
1 parent 8e3fa9d commit fedc898

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/exynos/exynos_drm_dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
13351335
int ret;
13361336
int te_gpio_irq;
13371337

1338-
dsi->te_gpio = devm_gpiod_get_optional(dsi->dev, "te", GPIOD_IN);
1338+
dsi->te_gpio = gpiod_get_optional(panel, "te", GPIOD_IN);
13391339
if (!dsi->te_gpio) {
13401340
return 0;
13411341
} else if (IS_ERR(dsi->te_gpio)) {

0 commit comments

Comments
 (0)