BACKPORT: mwifiex: move if_ops.cleanup_if() call

As if_ops.init_if() is called in mwifiex_register(),
corresponding cleanup routine should be called in
mwifiex_unregister().

Currently it's there in mwifiex_adapter_cleanup(), hence
interface specific cleanup is not performed if driver
initialization is failed.

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>
(cherry picked from commit 4cfda67d8f37cc422ad9f181c173a241c913055b)

Conflicts:
	drivers/net/wireless-3.4/mwifiex/init.c
[Brian: mwifiex_dbg() vs. dev_dbg()]

[Cherry-picked for wireless-3.4 -- and the original conflict fix now is
conflicting again :)]

BUG=b:62836830
TEST=`iw mlan0 scan & sleep 0.5; echo 1 > /sys/kernel/debug/mwifiex/mlan0/reset`

Change-Id: Ic256ce6861d7a7821c4b35cc88c7a3fa0d2552af
Signed-off-by: Brian Norris <briannorris@chromium.org>
(cherry picked from commit b2122f1928b57d1f5a445f11fea272600d105784)
Reviewed-on: https://chromium-review.googlesource.com/588375
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
(cherry picked from commit b627e7b76fc06f5be08cb802d375eef4915cf8a1)
Reviewed-on: https://chromium-review.googlesource.com/765128
2 files changed