]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: add unregister_dev handler for usb interface
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Jul 2013 02:17:51 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Jul 2013 15:02:09 +0000 (11:02 -0400)
commitde9f62b857172940f26639c413b96d9431782ca5
tree487377155b5cace8c4af0c774a429ac662c82d9b
parentb3be95642ac025836e3e51023af45c2d0f3ce96e
mwifiex: add unregister_dev handler for usb interface

Clear the data pointer stored in USB interface structure in
this handler. This helps to return from mwifiex_usb_disconnect()
if driver deinitialization is already performed while handling
an error path for mwifiex_usb_probe().

USB8797 card gets enumerated twice. First enumeration is for
firmware download and second enumeration expects firmware
initialization. mwifiex_usb_probe() always takes care of
deinitialization for first enumeration after firmware download.

Also, this change matches our handling for SDIO and PCIe
interfaces.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/usb.c