d1: add new target
[openwrt/staging/wigyori.git] / target / linux / d1 / patches-6.1 / 0109-drm-panel-cwd686-Make-reset-gpio-mandatory.patch
1 From 6112585994a6bdbd882709e7187c8c9289211b3b Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sun, 7 Aug 2022 19:16:03 -0500
4 Subject: [PATCH 109/117] drm: panel: cwd686: Make reset gpio mandatory
5
6 Signed-off-by: Samuel Holland <samuel@sholland.org>
7 ---
8 drivers/gpu/drm/panel/panel-clockwork-cwd686.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/drivers/gpu/drm/panel/panel-clockwork-cwd686.c b/drivers/gpu/drm/panel/panel-clockwork-cwd686.c
12 index c700eef2c6e2..eaff28290309 100644
13 --- a/drivers/gpu/drm/panel/panel-clockwork-cwd686.c
14 +++ b/drivers/gpu/drm/panel/panel-clockwork-cwd686.c
15 @@ -410,7 +410,7 @@ static int cwd686_probe(struct mipi_dsi_device *dsi)
16 MIPI_DSI_MODE_VIDEO_BURST |
17 MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
18
19 - ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
20 + ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
21 if (IS_ERR(ctx->reset_gpio)) {
22 err = PTR_ERR(ctx->reset_gpio);
23 if (err != -EPROBE_DEFER)
24 --
25 2.20.1
26