提交 23535c13 编写于 作者: B Binoy Jayan 提交者: 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: NJiri Slaby <jslaby@suse.cz>
Signed-off-by: NBinoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册