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

staging: csr: remove CsrMutexCreate function

nobody are calling this function in here, so remove this
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0edf65f9
...@@ -19,32 +19,6 @@ ...@@ -19,32 +19,6 @@
#include "csr_framework_ext.h" #include "csr_framework_ext.h"
#include "csr_panic.h" #include "csr_panic.h"
/*----------------------------------------------------------------------------*
* NAME
* CsrMutexCreate
*
* DESCRIPTION
* Create a mutex and return a handle to the created mutex.
*
* RETURNS
* Possible values:
* CSR_RESULT_SUCCESS in case of success
* CSR_FE_RESULT_NO_MORE_MUTEXES in case of out of mutex resources
* CSR_FE_RESULT_INVALID_POINTER in case the mutexHandle pointer is invalid
*
*----------------------------------------------------------------------------*/
CsrResult CsrMutexCreate(CsrMutexHandle *mutexHandle)
{
if (mutexHandle == NULL)
{
return CSR_FE_RESULT_INVALID_POINTER;
}
sema_init(mutexHandle, 1);
return CSR_RESULT_SUCCESS;
}
/*----------------------------------------------------------------------------* /*----------------------------------------------------------------------------*
* NAME * NAME
* CsrThreadSleep * CsrThreadSleep
......
...@@ -95,22 +95,6 @@ CsrResult CsrEventSet(CsrEventHandle *eventHandle, u32 eventBits); ...@@ -95,22 +95,6 @@ CsrResult CsrEventSet(CsrEventHandle *eventHandle, u32 eventBits);
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
void CsrEventDestroy(CsrEventHandle *eventHandle); void CsrEventDestroy(CsrEventHandle *eventHandle);
/*----------------------------------------------------------------------------*
* NAME
* CsrMutexCreate
*
* DESCRIPTION
* Create a mutex and return a handle to the created mutex.
*
* RETURNS
* Possible values:
* CSR_RESULT_SUCCESS in case of success
* CSR_FE_RESULT_NO_MORE_MUTEXES in case of out of mutex resources
* CSR_FE_RESULT_INVALID_POINTER in case the mutexHandle pointer is invalid
*
*----------------------------------------------------------------------------*/
CsrResult CsrMutexCreate(CsrMutexHandle *mutexHandle);
/*----------------------------------------------------------------------------* /*----------------------------------------------------------------------------*
* 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