staging: wilc1000: move wlan_deinit_locks() in wilc_netdev_cleanup()
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 26 Sep 2019 15:14:56 +0000 (15:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2019 19:58:02 +0000 (21:58 +0200)
commitfb2d74342fedca6074dd3c4ae9339f76d35caac3
treef088f1d68a2525e21aff7f074b1ae5d4407e9a44
parent82e465642f93e3134227a4e5bd3418238695ad54
staging: wilc1000: move wlan_deinit_locks() in wilc_netdev_cleanup()

Move deinitialization of lock during the module remove and the
initialization of lock wilc_cfg80211_init(). This to ensure locks are
available during module load and gets free during unload.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20190926151436.27819-2-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_netdev.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.h