Commit 23535c13 authored by Binoy Jayan's avatar Binoy Jayan Committed by Greg Kroah-Hartman

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: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarBinoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9d766b9
...@@ -648,7 +648,7 @@ void wilc1000_wlan_deinit(struct net_device *dev) ...@@ -648,7 +648,7 @@ void wilc1000_wlan_deinit(struct net_device *dev)
mutex_unlock(&wl->hif_cs); mutex_unlock(&wl->hif_cs);
} }
if (&wl->txq_event) if (&wl->txq_event)
wait_for_completion(&wl->txq_event); complete(&wl->txq_event);
wlan_deinitialize_threads(dev); wlan_deinitialize_threads(dev);
deinit_irq(dev); deinit_irq(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment