diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-07 14:32:01 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 17:36:08 +0200 |
commit | 45e8492f594dcb17e8cbb26edb2dd3018a68dada (patch) | |
tree | 19c6362e9237bab50fbf869692fd14296f450899 | |
parent | 10d0ff83078d5ef99aaf94a2aaceb740f5ced923 (diff) | |
download | kernel_samsung_crespo-45e8492f594dcb17e8cbb26edb2dd3018a68dada.zip kernel_samsung_crespo-45e8492f594dcb17e8cbb26edb2dd3018a68dada.tar.gz kernel_samsung_crespo-45e8492f594dcb17e8cbb26edb2dd3018a68dada.tar.bz2 |
input: Serio/hil_mlc: semaphore cleanup
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>
-rw-r--r-- | drivers/input/serio/hil_mlc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/serio/hil_mlc.c b/drivers/input/serio/hil_mlc.c index c92f4ed..e5624d8 100644 --- a/drivers/input/serio/hil_mlc.c +++ b/drivers/input/serio/hil_mlc.c @@ -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); |