summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 14:32:34 +0000
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 17:36:10 +0200
commita529f1505b6facfd0078dcb18a444976c1985962 (patch)
tree5fad0588ec4dddd6467439d7722689146d48ddf8 /drivers
parentdb7f859ec53c0bfaf3520afe2feafd18a27e48fb (diff)
downloadlinux-3.10-a529f1505b6facfd0078dcb18a444976c1985962.tar.gz
linux-3.10-a529f1505b6facfd0078dcb18a444976c1985962.tar.bz2
linux-3.10-a529f1505b6facfd0078dcb18a444976c1985962.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/parport/share.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index dffa5d4fb29..a2d9d1e5926 100644
--- a/drivers/parport/share.c
+++ b/drivers/parport/share.c
@@ -306,7 +306,7 @@ struct parport *parport_register_port(unsigned long base, int irq, int dma,
spin_lock_init(&tmp->pardevice_lock);
tmp->ieee1284.mode = IEEE1284_MODE_COMPAT;
tmp->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
- init_MUTEX_LOCKED (&tmp->ieee1284.irq); /* actually a semaphore at 0 */
+ sema_init(&tmp->ieee1284.irq, 0);
tmp->spintime = parport_default_spintime;
atomic_set (&tmp->ref_count, 1);
INIT_LIST_HEAD(&tmp->full_list);