linux/drivers/net/wireless/marvell
Brian Norris b6658b66d8 mwifiex: reunite copy-and-pasted remove/reset code
When PCIe FLR code was added, it explicitly copy-and-pasted much of
mwifiex_remove_card() into mwifiex_shutdown_sw(). This is unnecessary,
as almost all of the code should be reused.

Let's reunite what we can for now.

The only functional changes for now:

 * call netif_device_detach() in the remove() code path -- this wasn't
   done before, but it really should be a no-op, when the device is
   getting totally unregistered soon anyway

 * call the ->down_dev() driver callback only after we've finished all
   SW teardown -- this should have no significant effect, since the only
   user (pcie.c) does very minimal work there, and it doesn't matter
   that we reorder this

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-07-28 17:47:45 +03:00
..
libertas Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
libertas_tf networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
mwifiex mwifiex: reunite copy-and-pasted remove/reset code 2017-07-28 17:47:45 +03:00
Kconfig
Makefile
mwl8k.c mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00