diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-21 15:49:31 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-21 15:49:31 -0400 |
| commit | 31b7eab27a314b153d8fa07ba9e9ec00a98141e1 (patch) | |
| tree | 47415377d5f9bcf8c06e501f1636088548202edf /drivers/input/misc | |
| parent | 1053e6bba091d9d18797f7789df6a7ef8735f20c (diff) | |
| parent | 4ba053c04aece1f4734056f21b751eee47ea3fb1 (diff) | |
Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
lockdep: Check the depth of subclass
lockdep: Add improved subclass caching
affs: Use sema_init instead of init_MUTEX
hfs: Convert tree_lock to mutex
arm: Bcmring: semaphore cleanup
printk: Make console_sem a semaphore not a pseudo mutex
drivers/macintosh/adb: Do not claim that the semaphore is a mutex
parport: Semaphore cleanup
irda: Semaphore cleanup
net: Wan/cosa.c: Convert "mutex" to semaphore
net: Ppp_async: semaphore cleanup
hamradio: Mkiss: semaphore cleanup
hamradio: 6pack: semaphore cleanup
net: 3c527: semaphore cleanup
input: Serio/hp_sdc: semaphore cleanup
input: Serio/hil_mlc: semaphore cleanup
input: Misc/hp_sdc_rtc: semaphore cleanup
lockup_detector: Make callback function static
lockup detector: Fix grammar by adding a missing "to" in the comments
lockdep: Remove __debug_show_held_locks
Diffstat (limited to 'drivers/input/misc')
| -rw-r--r-- | drivers/input/misc/hp_sdc_rtc.c | 4 |
1 files changed, 2 insertions, 2 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; |
