staging: wilc1000: avoid use of 'g_sdio' static variable
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 25 Sep 2018 06:23:36 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:53:57 +0000 (20:53 +0200)
commit97eaff578bf79e41d7efa50046ba2acc95ac4cd2
tree9a5f89fbb269ec9d3e1a185eca16323ae2a07786
parentd29ad322e0ea4f5dac4a66ccf19e88def79b43b2
staging: wilc1000: avoid use of 'g_sdio' static variable

Instead of using static variable 'g_sdio' move it as part of 'wilc'
struct. Also allocating the memory in the probe function and free during
deinitialization.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_sdio.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h