From: Arend van Spriel Date: Mon, 6 Jan 2014 11:40:47 +0000 (+0100) Subject: brcmfmac: move wiphy_unregister() call to brcmf_cfg80211_detach() X-Git-Tag: v3.14-rc1~94^2~238^2^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=427dec5fc84d6d99f433a6eb008e97aea1757cfb;p=pandora-kernel.git 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 Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed