From: Amitkumar Karwar Date: Tue, 23 Jul 2013 02:17:51 +0000 (-0700) Subject: mwifiex: add unregister_dev handler for usb interface X-Git-Tag: v3.12-rc1~132^2~297^2^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2739a95d708c67ff541826f79ef0b2d19320306f;p=pandora-kernel.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed