lkml.org 
[lkml]   [2010]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 03/30] 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: Dmitry Torokhov <dtor@mail.ru>

---
drivers/input/serio/hil_mlc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6/drivers/input/serio/hil_mlc.c
===================================================================
--- linux-2.6.orig/drivers/input/serio/hil_mlc.c
+++ linux-2.6/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);



\
 
 \ /
  Last update: 2010-09-07 16:35    [W:0.237 / U:9.888 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site