diff options
-rw-r--r-- | drivers/gpu/pvr/omap3/sysutils_linux_wqueue_compat.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/gpu/pvr/omap3/sysutils_linux_wqueue_compat.c b/drivers/gpu/pvr/omap3/sysutils_linux_wqueue_compat.c index be90433fdfa..481b7c61158 100644 --- a/drivers/gpu/pvr/omap3/sysutils_linux_wqueue_compat.c +++ b/drivers/gpu/pvr/omap3/sysutils_linux_wqueue_compat.c @@ -77,20 +77,24 @@ static IMG_VOID PowerLockUnwrap(SYS_SPECIFIC_DATA *psSysSpecData) } } -PVRSRV_ERROR SysPowerLockWrap(SYS_DATA *psSysData) +PVRSRV_ERROR SysPowerLockWrap(IMG_VOID) { - SYS_SPECIFIC_DATA *psSysSpecData = (SYS_SPECIFIC_DATA *) psSysData->pvSysSpecificData; + SYS_DATA *psSysData; + + SysAcquireData(&psSysData); - PowerLockWrap(psSysSpecData); + PowerLockWrap(psSysData->pvSysSpecificData); return PVRSRV_OK; } -IMG_VOID SysPowerLockUnwrap(SYS_DATA *psSysData) +IMG_VOID SysPowerLockUnwrap(IMG_VOID) { - SYS_SPECIFIC_DATA *psSysSpecData = (SYS_SPECIFIC_DATA *) psSysData->pvSysSpecificData; + SYS_DATA *psSysData; + + SysAcquireData(&psSysData); - PowerLockUnwrap(psSysSpecData); + PowerLockUnwrap(psSysData->pvSysSpecificData); } IMG_BOOL WrapSystemPowerChange(SYS_SPECIFIC_DATA *psSysSpecData) |