Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);