blob: 64d53f58d4edb692297529b7f300ae24511948e8 [file] [log] [blame]
From e710d7223972b39d22b6552f8b83ccdb4559bfdf Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 26 Jul 2009 00:43:27 +0200
Subject: [PATCH] input: serio/hil_mlc: semaphore cleanup
commit e77305e4cec50e7b0d3091b037042b667ee919a4 in tip.
The usage of this "mutex" is non obvious and probably a completion in
some places. Make it a semaphore.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
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..567a1d6 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);
+ semaphore_init(&mlc->osem);
- init_MUTEX(&mlc->isem);
+ semaphore_init(&mlc->isem);
mlc->icount = -1;
mlc->imatch = 0;
mlc->opercnt = 0;
- init_MUTEX_LOCKED(&(mlc->csem));
+ semaphore_init(&(mlc->csem));
hil_mlc_clear_di_scratch(mlc);
hil_mlc_clear_di_map(mlc, 0);
--
1.7.0.4