aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/base.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2010-12-16 12:13:57 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-16 15:22:32 -0500
commit8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42 (patch)
tree09c1439790d4eaa463a265aabee89845013d31f0 /drivers/net/wireless/rtlwifi/base.c
parent3cf0c8ad94ba1ba241b970cd19c11a4f3cea93c2 (diff)
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)
309 } 309 }
310 310
311 /* <4> locks */ 311 /* <4> locks */
312 sema_init(&rtlpriv->locks.ips_sem, 1); 312 mutex_init(&rtlpriv->locks.ips_mutex);
313 sema_init(&rtlpriv->locks.conf_sem, 1); 313 mutex_init(&rtlpriv->locks.conf_mutex);
314 spin_lock_init(&rtlpriv->locks.irq_th_lock); 314 spin_lock_init(&rtlpriv->locks.irq_th_lock);
315 spin_lock_init(&rtlpriv->locks.h2c_lock); 315 spin_lock_init(&rtlpriv->locks.h2c_lock);
316 spin_lock_init(&rtlpriv->locks.rf_ps_lock); 316 spin_lock_init(&rtlpriv->locks.rf_ps_lock);