summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib.h
diff options
context:
space:
mode:
authorBinoy Jayan <binoy.jayan@linaro.org>2016-06-01 14:56:56 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-21 18:22:31 +0200
commit38bee763bd6d1f77ca3d10639e9bb3f1a1a53443 (patch)
treee380629819ff79f2865a693cd7828fa7d03724a3 /drivers/staging/rtl8192e/rtllib.h
parentbe10ceea4f0920975df35c23d50f8eed157ef72b (diff)
downloadop-kernel-dev-38bee763bd6d1f77ca3d10639e9bb3f1a1a53443.zip
op-kernel-dev-38bee763bd6d1f77ca3d10639e9bb3f1a1a53443.tar.gz
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.h')
-rw-r--r--drivers/staging/rtl8192e/rtllib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 5bdc378..38247fa 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -30,7 +30,6 @@
#include <linux/jiffies.h>
#include <linux/timer.h>
#include <linux/sched.h>
-#include <linux/semaphore.h>
#include <linux/mutex.h>
#include <linux/delay.h>
@@ -1654,7 +1653,7 @@ struct rtllib_device {
struct mutex wx_mutex;
struct mutex scan_mutex;
- struct semaphore ips_sem;
+ struct mutex ips_mutex;
spinlock_t mgmt_tx_lock;
spinlock_t beacon_lock;
OpenPOWER on IntegriCloud