diff options
Diffstat (limited to 'drivers/staging/cxt1e1/functions.c')
-rw-r--r-- | drivers/staging/cxt1e1/functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/cxt1e1/functions.c b/drivers/staging/cxt1e1/functions.c index 23ea101d7a8..ab399c2f748 100644 --- a/drivers/staging/cxt1e1/functions.c +++ b/drivers/staging/cxt1e1/functions.c @@ -184,10 +184,10 @@ OS_sem_init (void *sem, int state) switch (state) { case SEM_TAKEN: - init_MUTEX_LOCKED ((struct semaphore *) sem); + sema_init((struct semaphore *) sem, 0); break; case SEM_AVAILABLE: - init_MUTEX ((struct semaphore *) sem); + sema_init((struct semaphore *) sem, 1); break; default: /* otherwise, set sem.count to state's * value */ |