diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-07 14:33:47 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-07 19:31:32 -0700 |
commit | 0f0800f17a60816141f138a422477dc936262c42 (patch) | |
tree | f21b866ac5d37d350c7754de2c3ade09be94e927 /drivers/staging/cxt1e1 | |
parent | d6835e8417554bfff40ba9603299f60de66fdf0a (diff) |
staging: Bulk convert the semaphore mess
init_MUTEX(_LOCKED) and DECLARE_MUTEX are going away. Bulk convert
staging users.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/cxt1e1')
-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 */ |