]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: csr: remove CsrMutexCreate function
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 25 Oct 2012 20:56:38 +0000 (16:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:06:59 +0000 (09:06 -0700)
nobody are calling this function in here, so remove this

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/csr_framework_ext.c
drivers/staging/csr/csr_framework_ext.h

index 48573f64edd484fd9c52e9cf18d820373aba6c7a..5b2bc4bdeffafbc5a5260a6d202175dc3a65dbcc 100644 (file)
 #include "csr_framework_ext.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
  *      CsrThreadSleep
index 83781ea6ef0cc25c410fefd290a51399bd8fd865..3991274d812308605986dbb58b749e5b4a5233d8 100644 (file)
@@ -95,22 +95,6 @@ CsrResult CsrEventSet(CsrEventHandle *eventHandle, u32 eventBits);
  *----------------------------------------------------------------------------*/
 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
  *      CsrGlobalMutexUnlock