mwl8k: prevent module unload hang
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 3 Aug 2009 19:59:09 +0000 (21:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 7 Aug 2009 17:09:33 +0000 (13:09 -0400)
commit60aa569f9212a13382c29cc734f275dec0f55e0b
tree975293c6e8cfe84ca93d3706fb8ed6c85db86128
parenta94cc97e14c5750ec2b50b2e4ecdfb0f369ed0f4
mwl8k: prevent module unload hang

We need to unregister our ieee80211_hw before resetting the chip, as
the former causes firmware commands to be issued which will time out
once the chip has been reset.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c