drm/msm/dsi: Make TE gpio optional
authorArchit Taneja <architt@codeaurora.org>
Thu, 25 Jun 2015 09:06:35 +0000 (14:36 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:24 +0000 (18:27 -0400)
Platforms containing only DSI video mode devices don't need a TE gpio.
Make TE gpio optional.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c

index dc4d3e9d93c059f168b3d3028324f61a8719947b..9b784321c2e00ad88f33f308bb84c1a648f75c77 100644 (file)
@@ -1383,7 +1383,8 @@ static int dsi_host_init_panel_gpios(struct msm_dsi_host *msm_host,
                return PTR_ERR(msm_host->disp_en_gpio);
        }
 
-       msm_host->te_gpio = devm_gpiod_get(panel_device, "disp-te", GPIOD_IN);
+       msm_host->te_gpio = devm_gpiod_get_optional(panel_device, "disp-te",
+                                                               GPIOD_IN);
        if (IS_ERR(msm_host->te_gpio)) {
                DBG("cannot get disp-te-gpios %ld", PTR_ERR(msm_host->te_gpio));
                return PTR_ERR(msm_host->te_gpio);