summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorBinoy Jayan <binoy.jayan@linaro.org>2016-07-21 13:26:56 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-21 17:28:21 +0200
commit23535c1322e42e71f32bfbeae9970f4dba31e3bd (patch)
tree63a7a71dd93e4317393b426af090f9e807e8bcaf /drivers/staging
parente9d766b965a15816cf9ec353d86c11f27b783d4d (diff)
downloadlinux-23535c1322e42e71f32bfbeae9970f4dba31e3bd.tar.bz2
staging: wilc1000: txq_event: Fix coding error
Fix incorrect usage of completion interface by replacing 'wait_for_completion' with 'complete'. This error was introduced accidentally while replacing semaphores with mutexes. Reported-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/wilc1000/linux_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 3a66255f14fc..32215110d597 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -648,7 +648,7 @@ void wilc1000_wlan_deinit(struct net_device *dev)
mutex_unlock(&wl->hif_cs);
}
if (&wl->txq_event)
- wait_for_completion(&wl->txq_event);
+ complete(&wl->txq_event);
wlan_deinitialize_threads(dev);
deinit_irq(dev);