aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/csr/csr_framework_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/csr/csr_framework_ext.c')
-rw-r--r--drivers/staging/csr/csr_framework_ext.c97
1 files changed, 0 insertions, 97 deletions
diff --git a/drivers/staging/csr/csr_framework_ext.c b/drivers/staging/csr/csr_framework_ext.c
index f91a4bf4e68f..2aabb6c6b0af 100644
--- a/drivers/staging/csr/csr_framework_ext.c
+++ b/drivers/staging/csr/csr_framework_ext.c
@@ -9,7 +9,6 @@
*****************************************************************************/
#include <linux/kernel.h>
-#include <linux/version.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include <linux/freezer.h>
@@ -18,102 +17,6 @@
#include <linux/bitops.h>
#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
- * CsrMutexDestroy
- *
- * DESCRIPTION
- * Destroy the previously created mutex.
- *
- * RETURNS
- * void
- *
- *----------------------------------------------------------------------------*/
-void CsrMutexDestroy(CsrMutexHandle *mutexHandle)
-{
-}
-
-/*----------------------------------------------------------------------------*
- * NAME
- * CsrMutexLock
- *
- * DESCRIPTION
- * Lock 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 CsrMutexLock(CsrMutexHandle *mutexHandle)
-{
- if (mutexHandle == NULL)
- {
- return CSR_FE_RESULT_INVALID_POINTER;
- }
-
- if (down_interruptible(mutexHandle))
- {
- CsrPanic(CSR_TECH_FW, CSR_PANIC_FW_UNEXPECTED_VALUE, "CsrMutexLock Failed");
- return CSR_FE_RESULT_INVALID_POINTER;
- }
-
- return CSR_RESULT_SUCCESS;
-}
-
-/*----------------------------------------------------------------------------*
- * 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