From: Imre Deak Date: Thu, 29 Apr 2010 12:48:26 +0000 (+0300) Subject: gpu: pvr: move ocp_cleanup() later during device deinit X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=141ebddb8519eae912e6d304e2eb1516a1776c37;p=sgx.git gpu: pvr: move ocp_cleanup() later during device deinit Unmap the OCP register range only after it's not needed any more. Signed-off-by: Imre Deak --- diff --git a/pvr/sysconfig.c b/pvr/sysconfig.c index 44aa7ab..8ce48e4 100644 --- a/pvr/sysconfig.c +++ b/pvr/sysconfig.c @@ -514,8 +514,6 @@ enum PVRSRV_ERROR SysDeinitialise(struct SYS_DATA *psSysData) } } - sgx_ocp_cleanup(); - if (SYS_SPECIFIC_DATA_TEST (gpsSysSpecificData, SYS_SPECIFIC_DATA_ENABLE_INITDEV)) { PVR_ASSERT(SYS_SPECIFIC_DATA_TEST @@ -556,6 +554,8 @@ enum PVRSRV_ERROR SysDeinitialise(struct SYS_DATA *psSysData) } } + sgx_ocp_cleanup(); + if (SYS_SPECIFIC_DATA_TEST (gpsSysSpecificData, SYS_SPECIFIC_DATA_ENABLE_ENVDATA)) { eError = OSDeInitEnvData(gpsSysData->pvEnvSpecificData);