Commit 3afa6eae authored by Thomas Gleixner's avatar Thomas Gleixner

input: misc/hp_sdc_rtc: semaphore cleanup

The usage of these "mutex"es is non obvious and probably a completion in
some places. Make them semaphores.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Dmitry Torokhov <dtor@mail.ru>
parent 5ad07777
...@@ -104,7 +104,7 @@ static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) ...@@ -104,7 +104,7 @@ static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm)
t.endidx = 91; t.endidx = 91;
t.seq = tseq; t.seq = tseq;
t.act.semaphore = &tsem; t.act.semaphore = &tsem;
init_MUTEX_LOCKED(&tsem); semaphore_init_locked(&tsem);
if (hp_sdc_enqueue_transaction(&t)) return -1; if (hp_sdc_enqueue_transaction(&t)) return -1;
...@@ -686,7 +686,7 @@ static int __init hp_sdc_rtc_init(void) ...@@ -686,7 +686,7 @@ static int __init hp_sdc_rtc_init(void)
return -ENODEV; return -ENODEV;
#endif #endif
init_MUTEX(&i8042tregs); semaphore_init(&i8042tregs);
if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr))) if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr)))
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment