diff options
author | Binoy Jayan | 2016-06-02 06:24:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-08-21 18:25:47 +0200 |
commit | 7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a (patch) | |
tree | 81d50d01fd28a6e2c74021b696575531e7466eac /drivers/staging/rtl8712/osdep_intf.h | |
parent | rtl8712: Replace semaphore terminate_cmdthread_sema with completion (diff) | |
download | kernel-qcow2-linux-7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a.tar.gz kernel-qcow2-linux-7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a.tar.xz kernel-qcow2-linux-7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a.zip |
rtl8712: intf_priv: Replace semaphore lock with completion
The semaphore 'lock' in 'intf_priv' 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/osdep_intf.h')
-rw-r--r-- | drivers/staging/rtl8712/osdep_intf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h index aa0ec74af511..5d37e1f951cf 100644 --- a/drivers/staging/rtl8712/osdep_intf.h +++ b/drivers/staging/rtl8712/osdep_intf.h @@ -36,7 +36,7 @@ struct intf_priv { /* when in USB, IO is through interrupt in/out endpoints */ struct usb_device *udev; struct urb *piorw_urb; - struct semaphore io_retevt; + struct completion io_retevt_comp; }; int r871x_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |