summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/osdep_intf.h
diff options
context:
space:
mode:
authorBinoy Jayan2016-06-02 06:24:09 +0200
committerGreg Kroah-Hartman2016-08-21 18:25:47 +0200
commit7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a (patch)
tree81d50d01fd28a6e2c74021b696575531e7466eac /drivers/staging/rtl8712/osdep_intf.h
parentrtl8712: Replace semaphore terminate_cmdthread_sema with completion (diff)
downloadkernel-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.h2
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);