staging: wilc1000: Replace semaphore txq_add_to_head_cs with mutex
authorBinoy Jayan <binoy.jayan@linaro.org>
Wed, 15 Jun 2016 05:30:35 +0000 (11:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:39:53 +0000 (14:39 -0700)
commit334bed089d3d74e64a34b0ebee52b146b6778a6b
treed09f5ea633c4c1fe318515d68f2a72a9b2b10e10
parentb27a6d5e636ac80b223a18ca2b3c892f1caef9e3
staging: wilc1000: Replace semaphore txq_add_to_head_cs with mutex

The semaphore 'txq_add_to_head_cs' is a simple mutex, so it should be
written as one. Semaphores are going away in the future. Also, removing
the timeout scenario as the error handling code does not propagate the
timeout properly.

Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c