Commit a529f1505b6facfd0078dcb18a444976c1985962
1 parent
db7f859ec5
Exists in
master
and in
39 other branches
parport: Semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Christoph Hellwig <hch@infradead.org> LKML-Reference: <20100907125055.743613774@linutronix.de>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/parport/share.c
... | ... | @@ -306,7 +306,7 @@ |
306 | 306 | spin_lock_init(&tmp->pardevice_lock); |
307 | 307 | tmp->ieee1284.mode = IEEE1284_MODE_COMPAT; |
308 | 308 | tmp->ieee1284.phase = IEEE1284_PH_FWD_IDLE; |
309 | - init_MUTEX_LOCKED (&tmp->ieee1284.irq); /* actually a semaphore at 0 */ | |
309 | + sema_init(&tmp->ieee1284.irq, 0); | |
310 | 310 | tmp->spintime = parport_default_spintime; |
311 | 311 | atomic_set (&tmp->ref_count, 1); |
312 | 312 | INIT_LIST_HEAD(&tmp->full_list); |