]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04fb0464d7cce03fa09b9070f08d583f6958dc8e
tree9a5f89fbb269ec9d3e1a185eca16323ae2a07786
parent4d20d9b89013149aa2869b5c6dd01c4ac6e9c84a
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