Commit ce1f5b80 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging: csr: remove CsrMutexUnlock function

Nobody is using this function inside the csr directory, so remove this function also
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d08782c
...@@ -60,31 +60,6 @@ void CsrMutexDestroy(CsrMutexHandle *mutexHandle) ...@@ -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 * NAME
* CsrThreadSleep * CsrThreadSleep
......
...@@ -111,21 +111,6 @@ void CsrEventDestroy(CsrEventHandle *eventHandle); ...@@ -111,21 +111,6 @@ void CsrEventDestroy(CsrEventHandle *eventHandle);
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
CsrResult CsrMutexCreate(CsrMutexHandle *mutexHandle); 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 * NAME
* CsrMutexDestroy * CsrMutexDestroy
...@@ -139,21 +124,6 @@ CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle); ...@@ -139,21 +124,6 @@ CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle);
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
void CsrMutexDestroy(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 * NAME
* CsrGlobalMutexUnlock * CsrGlobalMutexUnlock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment