blob: fa691d15bb1a93e2fce49469ac6daa0484623126 [file] [log] [blame]
From 32ec601633c47b3867190d89f9ca005d6c08f3b2 Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 26 Jul 2009 00:44:20 +0200
Subject: [PATCH] input: serio/hp_sdc: semaphore cleanup
commit ef32f03646610285ed8cbb9f65a50fe9837d1780 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>
diff --git a/drivers/input/serio/hp_sdc.c b/drivers/input/serio/hp_sdc.c
index bcc2d30..ff45419 100644
--- a/drivers/input/serio/hp_sdc.c
+++ b/drivers/input/serio/hp_sdc.c
@@ -1039,7 +1039,7 @@ static int __init hp_sdc_register(void)
return hp_sdc.dev_err;
}
- init_MUTEX_LOCKED(&tq_init_sem);
+ semaphore_init(&tq_init_sem);
tq_init.actidx = 0;
tq_init.idx = 1;
--
1.7.1.1