gpu: pvr: omaplfb: remove unnecessary fb unblanking
authorImre Deak <imre.deak@nokia.com>
Thu, 22 Jul 2010 11:00:12 +0000 (14:00 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
This is unnecessary and is causing a lockdep problem with the DSS
driver.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/omaplfb_displayclass.c

index c33b83a..4348b2e 100644 (file)
@@ -75,28 +75,11 @@ static int FrameBufferEvents(struct notifier_block *psNotif,
        return 0;
 }
 
-static enum PVRSRV_ERROR UnblankDisplay(struct OMAPLFB_DEVINFO *psDevInfo)
-{
-       int res;
-
-       acquire_console_sem();
-       res = fb_blank(psDevInfo->psLINFBInfo, 0);
-       release_console_sem();
-       if (res != 0) {
-               printk(KERN_WARNING DRIVER_PREFIX
-                      ": fb_blank failed (%d)", res);
-               return PVRSRV_ERROR_GENERIC;
-       }
-
-       return PVRSRV_OK;
-}
-
 static enum PVRSRV_ERROR EnableLFBEventNotification(struct OMAPLFB_DEVINFO
                                                                   *psDevInfo)
 {
        int res;
        struct OMAPLFB_SWAPCHAIN *psSwapChain = psDevInfo->psSwapChain;
-       enum PVRSRV_ERROR eError;
 
        memset(&psDevInfo->sLINNotifBlock, 0,
               sizeof(psDevInfo->sLINNotifBlock));
@@ -113,13 +96,6 @@ static enum PVRSRV_ERROR EnableLFBEventNotification(struct OMAPLFB_DEVINFO
                return PVRSRV_ERROR_GENERIC;
        }
 
-       eError = UnblankDisplay(psDevInfo);
-       if (eError != PVRSRV_OK) {
-               DEBUG_PRINTK((KERN_WARNING DRIVER_PREFIX
-                             ": UnblankDisplay failed (%d)", eError));
-               return eError;
-       }
-
        return PVRSRV_OK;
 }
 
@@ -142,7 +118,6 @@ static enum PVRSRV_ERROR OpenDCDevice(u32 ui32DeviceID, void **phDevice,
                                struct PVRSRV_SYNC_DATA *psSystemBufferSyncData)
 {
        struct OMAPLFB_DEVINFO *psDevInfo;
-       enum PVRSRV_ERROR eError;
 
        PVR_UNREFERENCED_PARAMETER(ui32DeviceID);
 
@@ -150,13 +125,6 @@ static enum PVRSRV_ERROR OpenDCDevice(u32 ui32DeviceID, void **phDevice,
 
        psDevInfo->sSystemBuffer.psSyncData = psSystemBufferSyncData;
 
-       eError = UnblankDisplay(psDevInfo);
-       if (eError != PVRSRV_OK) {
-               DEBUG_PRINTK((KERN_WARNING DRIVER_PREFIX
-                             ": UnblankDisplay failed (%d)", eError));
-               return eError;
-       }
-
        *phDevice = (void *) psDevInfo;
 
        return PVRSRV_OK;