| From c41f85d99c122856a42348ddb985b6c5ade5da47 Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Sun, 26 Jul 2009 00:41:29 +0200 |
| Subject: [PATCH] input: misc/hp_sdc_rtc: semaphore cleanup |
| |
| commit 3afa6eae938150e9f2a76299d047a5abf8629dbe in tip. |
| |
| The usage of these "mutex"es is non obvious and probably a completion in |
| some places. Make them semaphores. |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| Cc: Dmitry Torokhov <dtor@mail.ru> |
| |
| diff --git a/drivers/input/misc/hp_sdc_rtc.c b/drivers/input/misc/hp_sdc_rtc.c |
| index ad730e1..17920a9 100644 |
| --- a/drivers/input/misc/hp_sdc_rtc.c |
| +++ b/drivers/input/misc/hp_sdc_rtc.c |
| @@ -103,7 +103,7 @@ static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) |
| t.endidx = 91; |
| t.seq = tseq; |
| t.act.semaphore = &tsem; |
| - init_MUTEX_LOCKED(&tsem); |
| + semaphore_init_locked(&tsem); |
| |
| if (hp_sdc_enqueue_transaction(&t)) return -1; |
| |
| @@ -684,7 +684,7 @@ static int __init hp_sdc_rtc_init(void) |
| return -ENODEV; |
| #endif |
| |
| - init_MUTEX(&i8042tregs); |
| + semaphore_init(&i8042tregs); |
| |
| if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr))) |
| return ret; |
| -- |
| 1.7.1.1 |
| |