diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2016-06-02 07:24:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-21 19:25:47 +0300 |
commit | 7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a (patch) | |
tree | 81d50d01fd28a6e2c74021b696575531e7466eac /drivers/staging/rtl8712/osdep_intf.h | |
parent | 204a8ac1db424d6873c450828eb837c7d4158294 (diff) | |
download | linux-7c2bb7aff9b5ef83c5b1fd3a9ef0af39bbbf1f7a.tar.xz |
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); |