diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2016-06-02 09:54:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-21 18:25:47 +0200 |
commit | 204a8ac1db424d6873c450828eb837c7d4158294 (patch) | |
tree | 9c60370af8db7f969a242f503e00ebd2f0c84639 /drivers/staging/rtl8712/rtl871x_cmd.h | |
parent | rtl8712: Replace semaphore cmd_queue_sema with completion (diff) | |
download | linux-dev-204a8ac1db424d6873c450828eb837c7d4158294.tar.xz linux-dev-204a8ac1db424d6873c450828eb837c7d4158294.zip |
rtl8712: Replace semaphore terminate_cmdthread_sema with completion
The semaphore 'terminate_cmdthread_sema' 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>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_cmd.h')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/drivers/staging/rtl8712/rtl871x_cmd.h index 1907bc90e068..ebd2e1d3e762 100644 --- a/drivers/staging/rtl8712/rtl871x_cmd.h +++ b/drivers/staging/rtl8712/rtl871x_cmd.h @@ -51,7 +51,7 @@ struct cmd_obj { struct cmd_priv { struct completion cmd_queue_comp; - struct semaphore terminate_cmdthread_sema; + struct completion terminate_cmdthread_comp; struct __queue cmd_queue; u8 cmd_seq; u8 *cmd_buf; /*shall be non-paged, and 4 bytes aligned*/ |