diff options
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/misc/hp_sdc_rtc.c | 4 | ||||
| -rw-r--r-- | drivers/input/serio/hil_mlc.c | 6 | ||||
| -rw-r--r-- | drivers/input/serio/hp_sdc.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/input/misc/hp_sdc_rtc.c b/drivers/input/misc/hp_sdc_rtc.c index c19066479057..7e2c12a5b839 100644 --- a/drivers/input/misc/hp_sdc_rtc.c +++ b/drivers/input/misc/hp_sdc_rtc.c | |||
| @@ -104,7 +104,7 @@ static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) | |||
| 104 | t.endidx = 91; | 104 | t.endidx = 91; |
| 105 | t.seq = tseq; | 105 | t.seq = tseq; |
| 106 | t.act.semaphore = &tsem; | 106 | t.act.semaphore = &tsem; |
| 107 | init_MUTEX_LOCKED(&tsem); | 107 | sema_init(&tsem, 0); |
| 108 | 108 | ||
| 109 | if (hp_sdc_enqueue_transaction(&t)) return -1; | 109 | if (hp_sdc_enqueue_transaction(&t)) return -1; |
| 110 | 110 | ||
| @@ -698,7 +698,7 @@ static int __init hp_sdc_rtc_init(void) | |||
| 698 | return -ENODEV; | 698 | return -ENODEV; |
| 699 | #endif | 699 | #endif |
| 700 | 700 | ||
| 701 | init_MUTEX(&i8042tregs); | 701 | sema_init(&i8042tregs, 1); |
| 702 | 702 | ||
| 703 | if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr))) | 703 | if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr))) |
| 704 | return ret; | 704 | return ret; |
diff --git a/drivers/input/serio/hil_mlc.c b/drivers/input/serio/hil_mlc.c index c92f4edfee7b..e5624d8f1709 100644 --- a/drivers/input/serio/hil_mlc.c +++ b/drivers/input/serio/hil_mlc.c | |||
| @@ -915,15 +915,15 @@ int hil_mlc_register(hil_mlc *mlc) | |||
| 915 | mlc->ostarted = 0; | 915 | mlc->ostarted = 0; |
| 916 | 916 | ||
| 917 | rwlock_init(&mlc->lock); | 917 | rwlock_init(&mlc->lock); |
| 918 | init_MUTEX(&mlc->osem); | 918 | sema_init(&mlc->osem, 1); |
| 919 | 919 | ||
| 920 | init_MUTEX(&mlc->isem); | 920 | sema_init(&mlc->isem, 1); |
| 921 | mlc->icount = -1; | 921 | mlc->icount = -1; |
| 922 | mlc->imatch = 0; | 922 | mlc->imatch = 0; |
| 923 | 923 | ||
| 924 | mlc->opercnt = 0; | 924 | mlc->opercnt = 0; |
| 925 | 925 | ||
| 926 | init_MUTEX_LOCKED(&(mlc->csem)); | 926 | sema_init(&(mlc->csem), 0); |
| 927 | 927 | ||
| 928 | hil_mlc_clear_di_scratch(mlc); | 928 | hil_mlc_clear_di_scratch(mlc); |
| 929 | hil_mlc_clear_di_map(mlc, 0); | 929 | hil_mlc_clear_di_map(mlc, 0); |
diff --git a/drivers/input/serio/hp_sdc.c b/drivers/input/serio/hp_sdc.c index bcc2d30ec245..8c0b51c31424 100644 --- a/drivers/input/serio/hp_sdc.c +++ b/drivers/input/serio/hp_sdc.c | |||
| @@ -905,7 +905,7 @@ static int __init hp_sdc_init(void) | |||
| 905 | ts_sync[1] = 0x0f; | 905 | ts_sync[1] = 0x0f; |
| 906 | ts_sync[2] = ts_sync[3] = ts_sync[4] = ts_sync[5] = 0; | 906 | ts_sync[2] = ts_sync[3] = ts_sync[4] = ts_sync[5] = 0; |
| 907 | t_sync.act.semaphore = &s_sync; | 907 | t_sync.act.semaphore = &s_sync; |
| 908 | init_MUTEX_LOCKED(&s_sync); | 908 | sema_init(&s_sync, 0); |
| 909 | hp_sdc_enqueue_transaction(&t_sync); | 909 | hp_sdc_enqueue_transaction(&t_sync); |
| 910 | down(&s_sync); /* Wait for t_sync to complete */ | 910 | down(&s_sync); /* Wait for t_sync to complete */ |
| 911 | 911 | ||
| @@ -1039,7 +1039,7 @@ static int __init hp_sdc_register(void) | |||
| 1039 | return hp_sdc.dev_err; | 1039 | return hp_sdc.dev_err; |
| 1040 | } | 1040 | } |
| 1041 | 1041 | ||
| 1042 | init_MUTEX_LOCKED(&tq_init_sem); | 1042 | sema_init(&tq_init_sem, 0); |
| 1043 | 1043 | ||
| 1044 | tq_init.actidx = 0; | 1044 | tq_init.actidx = 0; |
| 1045 | tq_init.idx = 1; | 1045 | tq_init.idx = 1; |
