brcmfmac: move wiphy_unregister() call to brcmf_cfg80211_detach()
authorArend van Spriel <arend@broadcom.com>
Mon, 6 Jan 2014 11:40:47 +0000 (12:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Jan 2014 20:48:04 +0000 (15:48 -0500)
commit427dec5fc84d6d99f433a6eb008e97aea1757cfb
tree5c64499df887a7fb66d1992e2b4f9af7cbd694c2
parent43dffbc6be148030de1f4ee8d241f1384016c689
brcmfmac: move wiphy_unregister() call to brcmf_cfg80211_detach()

The wiphy_unregister() call was done in brcmf_free_vif() when the
last interface was being removed. This is not the obvious place to
do that. This patch moves it to the brcmf_cfg80211_detach(). This
removes the need to keep count of interfaces.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/p2p.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h