OSDN Git Service

staging: wilc1000: refactor code to move initilization in wilc_netdev_init()
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 4 Sep 2018 06:39:40 +0000 (12:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 16:06:51 +0000 (18:06 +0200)
commitb3ee105c332efc49199e138822923be3562619aa
tree41470ccbb25b251bc5cfaebbe39ec47abc567f8c
parent28ab936ed10132f903b1b67ec6de1da9595d4b51
staging: wilc1000: refactor code to move initilization in wilc_netdev_init()

Refactor code to move the initialization of wilc related parameters in
wilc_netdev_init() and move their deinitialization in
wilc_netdev_cleanup(). For 'hif_workqueue' creation 'clients_count' check
is not required as the single instance is maintained.

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