summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/base.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2010-12-16 11:13:57 -0600
committerJohn W. Linville <linville@tuxdriver.com>2010-12-16 15:22:32 -0500
commit8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42 (patch)
tree09c1439790d4eaa463a265aabee89845013d31f0 /drivers/net/wireless/rtlwifi/base.c
parent3cf0c8ad94ba1ba241b970cd19c11a4f3cea93c2 (diff)
downloadlinux-8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42.tar.gz
linux-8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42.tar.bz2
linux-8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42.zip
rtlwifi: Switch locking from semaphores to mutexes
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/base.c')
-rw-r--r--drivers/net/wireless/rtlwifi/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c
index 9e860ff30b52..87530eaa88bd 100644
--- a/drivers/net/wireless/rtlwifi/base.c
+++ b/drivers/net/wireless/rtlwifi/base.c
@@ -309,8 +309,8 @@ int rtl_init_core(struct ieee80211_hw *hw)
}
/* <4> locks */
- sema_init(&rtlpriv->locks.ips_sem, 1);
- sema_init(&rtlpriv->locks.conf_sem, 1);
+ mutex_init(&rtlpriv->locks.ips_mutex);
+ mutex_init(&rtlpriv->locks.conf_mutex);
spin_lock_init(&rtlpriv->locks.irq_th_lock);
spin_lock_init(&rtlpriv->locks.h2c_lock);
spin_lock_init(&rtlpriv->locks.rf_ps_lock);