Skip to content

Commit

Permalink
input: Serio/hil_mlc: semaphore cleanup
Browse files Browse the repository at this point in the history
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
LKML-Reference: <20100907125054.985090435@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Oct 12, 2010
1 parent 10d0ff8 commit 45e8492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/serio/hil_mlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,15 +915,15 @@ int hil_mlc_register(hil_mlc *mlc)
mlc->ostarted = 0;

rwlock_init(&mlc->lock);
init_MUTEX(&mlc->osem);
sema_init(&mlc->osem, 1);

init_MUTEX(&mlc->isem);
sema_init(&mlc->isem, 1);
mlc->icount = -1;
mlc->imatch = 0;

mlc->opercnt = 0;

init_MUTEX_LOCKED(&(mlc->csem));
sema_init(&(mlc->csem), 0);

hil_mlc_clear_di_scratch(mlc);
hil_mlc_clear_di_map(mlc, 0);
Expand Down

0 comments on commit 45e8492

Please sign in to comment.