From bb0a10b46491e864b2bb7db8500bab7e83946bb6 Mon Sep 17 00:00:00 2001 From: Devendra Naga Date: Thu, 25 Oct 2012 16:55:27 -0400 Subject: [PATCH] --- yaml --- r: 337292 b: refs/heads/master c: ce1f5b80a1954c07b80fa8b778690f778da663d6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/staging/csr/csr_framework_ext.c | 25 ---------------- trunk/drivers/staging/csr/csr_framework_ext.h | 30 ------------------- 3 files changed, 1 insertion(+), 56 deletions(-) diff --git a/[refs] b/[refs] index 471be904c417..b55a5e0c0a21 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1d08782c0ed0b5c52488dac3ae12944cc8ff39e8 +refs/heads/master: ce1f5b80a1954c07b80fa8b778690f778da663d6 diff --git a/trunk/drivers/staging/csr/csr_framework_ext.c b/trunk/drivers/staging/csr/csr_framework_ext.c index 2033e9755e4f..086438feb812 100644 --- a/trunk/drivers/staging/csr/csr_framework_ext.c +++ b/trunk/drivers/staging/csr/csr_framework_ext.c @@ -60,31 +60,6 @@ void CsrMutexDestroy(CsrMutexHandle *mutexHandle) { } -/*----------------------------------------------------------------------------* - * NAME - * CsrMutexUnlock - * - * DESCRIPTION - * Unlock the mutex refered to by the provided handle. - * - * RETURNS - * Possible values: - * CSR_RESULT_SUCCESS in case of success - * CSR_FE_RESULT_INVALID_HANDLE in case the mutexHandle is invalid - * - *----------------------------------------------------------------------------*/ -CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle) -{ - if (mutexHandle == NULL) - { - return CSR_FE_RESULT_INVALID_POINTER; - } - - up(mutexHandle); - - return CSR_RESULT_SUCCESS; -} - /*----------------------------------------------------------------------------* * NAME * CsrThreadSleep diff --git a/trunk/drivers/staging/csr/csr_framework_ext.h b/trunk/drivers/staging/csr/csr_framework_ext.h index a49e459385ba..cad0cec0be96 100644 --- a/trunk/drivers/staging/csr/csr_framework_ext.h +++ b/trunk/drivers/staging/csr/csr_framework_ext.h @@ -111,21 +111,6 @@ void CsrEventDestroy(CsrEventHandle *eventHandle); *----------------------------------------------------------------------------*/ CsrResult CsrMutexCreate(CsrMutexHandle *mutexHandle); -/*----------------------------------------------------------------------------* - * NAME - * CsrMutexUnlock - * - * DESCRIPTION - * Unlock the mutex refered to by the provided handle. - * - * RETURNS - * Possible values: - * CSR_RESULT_SUCCESS in case of success - * CSR_FE_RESULT_INVALID_HANDLE in case the mutexHandle is invalid - * - *----------------------------------------------------------------------------*/ -CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle); - /*----------------------------------------------------------------------------* * NAME * CsrMutexDestroy @@ -139,21 +124,6 @@ CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle); *----------------------------------------------------------------------------*/ void CsrMutexDestroy(CsrMutexHandle *mutexHandle); -/*----------------------------------------------------------------------------* - * NAME - * CsrGlobalMutexLock - * - * DESCRIPTION - * Lock the global mutex. The global mutex is a single pre-initialised - * shared mutex, spinlock or similar that does not need to be created prior - * to use. The limitation is that there is only one single lock shared - * between all code. Consequently, it must only be used very briefly to - * either protect simple one-time initialisation or to protect the creation - * of a dedicated mutex by calling CsrMutexCreate. - * - *----------------------------------------------------------------------------*/ -void CsrGlobalMutexLock(void); - /*----------------------------------------------------------------------------* * NAME * CsrGlobalMutexUnlock