drm/msm/dsi: Make TE gpio optional
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>
This commit is contained in:
parent
3d6df06249
commit
60d05cb4ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user