summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2011-06-16 11:02:16 +0100
committerAndy Green <andy.green@linaro.org>2011-06-16 11:02:16 +0100
commit1299f5d8b51c6592d0b6d3f3de79f573782bba24 (patch)
tree0527c2da13ca0d6b976164877bfee1c2a21d26cc
parentb90bc829e935ff8847368c7d529647eb49f69082 (diff)
omap4 sgx fix console locking
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/gpu/pvr/omaplfb/omaplfb_displayclass.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/pvr/omaplfb/omaplfb_displayclass.c b/drivers/gpu/pvr/omaplfb/omaplfb_displayclass.c
index aca3b4de874..f0e0e05ed38 100644
--- a/drivers/gpu/pvr/omaplfb/omaplfb_displayclass.c
+++ b/drivers/gpu/pvr/omaplfb/omaplfb_displayclass.c
@@ -327,19 +327,20 @@ OMAP_ERROR UnBlankDisplay(OMAPLFB_DEVINFO *psDevInfo)
#if defined(SUPPORT_DRI_DRM) && defined(PVR_DISPLAY_CONTROLLER_DRM_IOCTL)
static OMAP_ERROR BlankDisplay(OMAPLFB_DEVINFO *psDevInfo, int blank_cmd)
{
+ int ret = OMAP_OK;
+
DEBUG_PRINTK("Executing for display %u",
psDevInfo->uDeviceID);
- acquire_console_sem();
+ console_lock();
if (fb_blank(psDevInfo->psLINFBInfo, blank_cmd))
{
- release_console_sem();
WARNING_PRINTK("fb_blank %i failed", blank_cmd);
- return OMAP_ERROR_GENERIC;
+ ret = OMAP_ERROR_GENERIC;
}
- release_console_sem();
+ console_unlock();
- return OMAP_OK;
+ return ret;
}
#endif