Skip to content

Commit 88405a7

Browse files
drm/panel: himax-hx8394: switch to devm_gpiod_get_optional() for reset_gpio
Switch the driver to use devm_gpiod_get_optional() on reset_gpio to avoid driver probe issues when reset line is not specified. Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com> Acked-by: Hari Prasath Gujulan Elango <hari.prasathge@microchip.com>
1 parent d9ea62b commit 88405a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/panel/panel-himax-hx8394.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static int hx8394_probe(struct mipi_dsi_device *dsi)
353353
if (!ctx)
354354
return -ENOMEM;
355355

356-
ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
356+
ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
357357
if (IS_ERR(ctx->reset_gpio))
358358
return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio),
359359
"Failed to get reset gpio\n");

0 commit comments

Comments
 (0)