summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-30 11:06:57 +0200
committerThomas Gleixner <tglx@linutronix.de>2010-10-30 12:12:50 +0200
commit45f4d0243525b6bc747c946937ced437b135a84d (patch)
tree02849b0719997d5017763fe8de44a007124ac3c1 /drivers/staging/rtl8712
parent51dfacdef38b1dd6fc58b03dd1725d517516b115 (diff)
downloadlinux-stable-45f4d0243525b6bc747c946937ced437b135a84d.tar.gz
linux-stable-45f4d0243525b6bc747c946937ced437b135a84d.tar.bz2
linux-stable-45f4d0243525b6bc747c946937ced437b135a84d.zip
staging: Final semaphore cleanup
Fixup the last remaining users of DECLARE_MUTEX and init_MUTEX. Scripted conversion, resulting code is binary equivalent. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> LKML-Reference: <20100907125057.278833764@linutronix.de>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r--drivers/staging/rtl8712/osdep_service.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h
index 7fca42c7c0d4..d1674cd282dc 100644
--- a/drivers/staging/rtl8712/osdep_service.h
+++ b/drivers/staging/rtl8712/osdep_service.h
@@ -161,7 +161,7 @@ static inline u32 _down_sema(struct semaphore *sema)
static inline void _rtl_rwlock_init(struct semaphore *prwlock)
{
- init_MUTEX(prwlock);
+ sema_init(prwlock, 1);
}
static inline void _init_listhead(struct list_head *list)