diff options
author | Andy Green <andy.green@linaro.org> | 2011-06-10 09:57:55 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-06-10 09:57:55 +0100 |
commit | fd1faa48ba2a58017572c4a0d7204360247b3dc0 (patch) | |
tree | e4069a3f33e3cccb6d91ecac35ec1192c7bae13b | |
parent | 0073fb5c50220eb5923b7e1d3c6dd5f6b8767921 (diff) |
omap4 sgx fix console locking
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r-- | drivers/gpu/pvr/omaplfb/omaplfb_displayclass.c | 11 |
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 |