summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib_softmac.c
diff options
context:
space:
mode:
authorBinoy Jayan2016-06-01 11:26:56 +0200
committerGreg Kroah-Hartman2016-08-21 18:22:31 +0200
commit38bee763bd6d1f77ca3d10639e9bb3f1a1a53443 (patch)
treee380629819ff79f2865a693cd7828fa7d03724a3 /drivers/staging/rtl8192e/rtllib_softmac.c
parentrtl8192e: Replace semaphore scan_sem with mutex (diff)
downloadkernel-qcow2-linux-38bee763bd6d1f77ca3d10639e9bb3f1a1a53443.tar.gz
kernel-qcow2-linux-38bee763bd6d1f77ca3d10639e9bb3f1a1a53443.tar.xz
kernel-qcow2-linux-38bee763bd6d1f77ca3d10639e9bb3f1a1a53443.zip
rtl8192e: Replace semaphore ips_sem with mutex
The semaphore 'ips_sem' in the rtl8192e is a simple mutex, so it should be written as one. Semaphores are going away in the future. Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_softmac.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_softmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index 858eae20a53f..e84ffc825752 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -3036,7 +3036,7 @@ void rtllib_softmac_init(struct rtllib_device *ieee)
mutex_init(&ieee->wx_mutex);
mutex_init(&ieee->scan_mutex);
- sema_init(&ieee->ips_sem, 1);
+ mutex_init(&ieee->ips_mutex);
spin_lock_init(&ieee->mgmt_tx_lock);
spin_lock_init(&ieee->beacon_lock);