From fb7933dcd9a4683abbd699e9842f06e34c416f08 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner 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 Cc: Dmitry Torokhov Signed-off-by: Paul Gortmaker --- drivers/input/serio/hp_sdc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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.0.4