aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/csr/csr_framework_ext.c25
-rw-r--r--drivers/staging/csr/csr_framework_ext.h30
2 files changed, 0 insertions, 55 deletions
diff --git a/drivers/staging/csr/csr_framework_ext.c b/drivers/staging/csr/csr_framework_ext.c
index 2033e9755e4..086438feb81 100644
--- a/drivers/staging/csr/csr_framework_ext.c
+++ b/drivers/staging/csr/csr_framework_ext.c
@@ -62,31 +62,6 @@ void CsrMutexDestroy(CsrMutexHandle *mutexHandle)
62 62
63/*----------------------------------------------------------------------------* 63/*----------------------------------------------------------------------------*
64 * NAME 64 * NAME
65 * CsrMutexUnlock
66 *
67 * DESCRIPTION
68 * Unlock the mutex refered to by the provided handle.
69 *
70 * RETURNS
71 * Possible values:
72 * CSR_RESULT_SUCCESS in case of success
73 * CSR_FE_RESULT_INVALID_HANDLE in case the mutexHandle is invalid
74 *
75 *----------------------------------------------------------------------------*/
76CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle)
77{
78 if (mutexHandle == NULL)
79 {
80 return CSR_FE_RESULT_INVALID_POINTER;
81 }
82
83 up(mutexHandle);
84
85 return CSR_RESULT_SUCCESS;
86}
87
88/*----------------------------------------------------------------------------*
89 * NAME
90 * CsrThreadSleep 65 * CsrThreadSleep
91 * 66 *
92 * DESCRIPTION 67 * DESCRIPTION
diff --git a/drivers/staging/csr/csr_framework_ext.h b/drivers/staging/csr/csr_framework_ext.h
index a49e459385b..cad0cec0be9 100644
--- a/drivers/staging/csr/csr_framework_ext.h
+++ b/drivers/staging/csr/csr_framework_ext.h
@@ -113,21 +113,6 @@ CsrResult CsrMutexCreate(CsrMutexHandle *mutexHandle);
113 113
114/*----------------------------------------------------------------------------* 114/*----------------------------------------------------------------------------*
115 * NAME 115 * NAME
116 * CsrMutexUnlock
117 *
118 * DESCRIPTION
119 * Unlock the mutex refered to by the provided handle.
120 *
121 * RETURNS
122 * Possible values:
123 * CSR_RESULT_SUCCESS in case of success
124 * CSR_FE_RESULT_INVALID_HANDLE in case the mutexHandle is invalid
125 *
126 *----------------------------------------------------------------------------*/
127CsrResult CsrMutexUnlock(CsrMutexHandle *mutexHandle);
128
129/*----------------------------------------------------------------------------*
130 * NAME
131 * CsrMutexDestroy 116 * CsrMutexDestroy
132 * 117 *
133 * DESCRIPTION 118 * DESCRIPTION
@@ -141,21 +126,6 @@ void CsrMutexDestroy(CsrMutexHandle *mutexHandle);
141 126
142/*----------------------------------------------------------------------------* 127/*----------------------------------------------------------------------------*
143 * NAME 128 * NAME
144 * CsrGlobalMutexLock
145 *
146 * DESCRIPTION
147 * Lock the global mutex. The global mutex is a single pre-initialised
148 * shared mutex, spinlock or similar that does not need to be created prior
149 * to use. The limitation is that there is only one single lock shared
150 * between all code. Consequently, it must only be used very briefly to
151 * either protect simple one-time initialisation or to protect the creation
152 * of a dedicated mutex by calling CsrMutexCreate.
153 *
154 *----------------------------------------------------------------------------*/
155void CsrGlobalMutexLock(void);
156
157/*----------------------------------------------------------------------------*
158 * NAME
159 * CsrGlobalMutexUnlock 129 * CsrGlobalMutexUnlock
160 * 130 *
161 * DESCRIPTION 131 * DESCRIPTION