diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2016-06-15 11:00:34 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-25 14:39:53 -0700 |
commit | b27a6d5e636ac80b223a18ca2b3c892f1caef9e3 (patch) | |
tree | 5cad4443b8f278b9a6b2ad1cf1aa5446eb2cfa31 /drivers/staging/wilc1000/wilc_wfi_netdevice.h | |
parent | b9811891a9f60ca9c314dcab3244c65930c4cf37 (diff) | |
download | op-kernel-dev-b27a6d5e636ac80b223a18ca2b3c892f1caef9e3.zip op-kernel-dev-b27a6d5e636ac80b223a18ca2b3c892f1caef9e3.tar.gz |
staging: wilc1000: Replace semaphore txq_event with completion
The semaphore 'txq_event' is used as completion, so convert it
to a struct completion type.
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index 3a561df6..12d7c7b 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -42,6 +42,7 @@ #include "host_interface.h" #include "wilc_wlan.h" #include <linux/wireless.h> +#include <linux/completion.h> #define FLOW_CONTROL_LOWER_THRESHOLD 128 #define FLOW_CONTROL_UPPER_THRESHOLD 256 @@ -178,7 +179,7 @@ struct wilc { struct semaphore cfg_event; struct semaphore sync_event; - struct semaphore txq_event; + struct completion txq_event; struct completion txq_thread_started; struct task_struct *txq_thread; |