diff options
-rw-r--r-- | drivers/video/tegra/dc/hdmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c index e14cda61a3d7..259c08431deb 100644 --- a/drivers/video/tegra/dc/hdmi.c +++ b/drivers/video/tegra/dc/hdmi.c @@ -896,7 +896,9 @@ static bool tegra_dc_hdmi_detect(struct tegra_dc *dc) struct fb_monspecs specs; int err; +#ifdef CONFIG_ANDROID mutex_lock(&dc->lock); +#endif /* CONFIG_ANDROID */ if (!tegra_dc_hdmi_hpd(dc)) goto fail; @@ -932,12 +934,16 @@ static bool tegra_dc_hdmi_detect(struct tegra_dc *dc) } success: +#ifdef CONFIG_ANDROID mutex_unlock(&dc->lock); +#endif /* CONFIG_ANDROID */ return true; fail: +#ifdef CONFIG_ANDROID mutex_unlock(&dc->lock); +#endif /* CONFIG_ANDROID */ hdmi->eld_retrieved = false; #ifdef CONFIG_SWITCH |