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>
This commit is contained in:
parent
e9d766b965
commit
23535c1322
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue