diff options
Diffstat (limited to 'drivers/video/omap2/dss/hdmi_panel.c')
-rw-r--r-- | drivers/video/omap2/dss/hdmi_panel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/hdmi_panel.c b/drivers/video/omap2/dss/hdmi_panel.c index 42e8b7c4465e..34477c70d9a5 100644 --- a/drivers/video/omap2/dss/hdmi_panel.c +++ b/drivers/video/omap2/dss/hdmi_panel.c @@ -59,8 +59,11 @@ static int hdmi_panel_enable(struct omap_dss_device *dssdev) int r = 0; DSSDBG("ENTER hdmi_panel_enable\n"); + dss_runtime_get(); + mutex_lock(&hdmi.hdmi_lock); + if (dssdev->state != OMAP_DSS_DISPLAY_DISABLED) { r = -EINVAL; goto err; @@ -79,6 +82,8 @@ static int hdmi_panel_enable(struct omap_dss_device *dssdev) err: mutex_unlock(&hdmi.hdmi_lock); + dss_runtime_put(); + return r; } |