staging: wilc1000: wilc1000_wlan_deinit: change argument and use wilc
authorGlen Lee <glen.lee@atmel.com>
Tue, 20 Oct 2015 08:13:57 +0000 (17:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:16:57 +0000 (18:16 -0700)
commit53dc0cfea3cfec470418730df7abfef401f75a4d
treebc3dd943e3060b76136f630680f8722358b530a8
parent299382cf437d5115f8c132dd0bd87aa78ee146b7
staging: wilc1000: wilc1000_wlan_deinit: change argument and use wilc

This patch changes function argument wilc with net_device and use nic->wilc
instead of global variable g_linux_wlan. The null check codes should be placed
before it is used so move it.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h