diff options
author | Chaehyun Lim <chaehyun.lim@gmail.com> | 2016-03-28 13:56:00 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-29 12:39:52 -0700 |
commit | 086620978b2d06378f4a41afce2f7705c76a4625 (patch) | |
tree | 57351ca5fd5459ebcf6668375b8f03dc5cd0bf0c /drivers/staging/wilc1000/wilc_wfi_netdevice.h | |
parent | 589c667d8ae1d7359a974719dd0d09f85aee5606 (diff) | |
download | op-kernel-dev-086620978b2d06378f4a41afce2f7705c76a4625.zip op-kernel-dev-086620978b2d06378f4a41afce2f7705c76a4625.tar.gz |
staging: wilc1000: use mutex instead of struct semaphore hSemScanReq
This patch replaces struct semaphore hSemScanReq with struct mutex
scan_req_lock. It is better to use mutex than semaphore.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_netdevice.h')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index 94a41b4..3d0ca8e 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -130,7 +130,7 @@ struct wilc_priv { struct wilc_wfi_key *wilc_ptk[MAX_NUM_STA]; u8 wilc_groupkey; /* semaphores */ - struct semaphore hSemScanReq; + struct mutex scan_req_lock; /* */ bool gbAutoRateAdjusted; |