The brcmfmac driver spews some error message upon unloading and Stefan Wahren was wondering whether it could be cleaned up. Related to this was a recent fix for NULL pointer deref. That fix introduced a construct that added to the itch to rework the probe sequence. So this series reverts commit 5cdb0ef6144f ("brcmfmac: fix NULL pointer derefence during USB disconnect"). The changes in this series are: * reorder brcmf_detach() code. * avoid firmware interaction when bus is down. * remove strlcpy() before issueing firmware version iovar. This series applies to the master branch of the wireless-drivers-next repository. Arend van Spriel (7): Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" brcmfmac: change the order of things in brcmf_detach() brcmfmac: avoid firmware command in brcmf_netdev_open() when bus is down brcmfmac: clear events in brcmf_fweh_detach() will always fail brcmfmac: avoid firmware commands when bus is down brcmfmac: simply remove flowring if bus is down brcmfmac: remove unnecessary strlcpy() upon obtaining "ver" iovar .../wireless/broadcom/brcm80211/brcmfmac/bcdc.c | 11 ++------ .../wireless/broadcom/brcm80211/brcmfmac/bcdc.h | 6 ++--- .../broadcom/brcm80211/brcmfmac/cfg80211.c | 23 +++++++++-------- .../wireless/broadcom/brcm80211/brcmfmac/common.c | 1 - .../wireless/broadcom/brcm80211/brcmfmac/core.c | 30 +++++++++++----------- .../wireless/broadcom/brcm80211/brcmfmac/fweh.c | 9 ------- .../broadcom/brcm80211/brcmfmac/fwsignal.c | 16 +++--------- .../broadcom/brcm80211/brcmfmac/fwsignal.h | 3 +-- .../wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 7 +++++ .../wireless/broadcom/brcm80211/brcmfmac/proto.c | 10 ++------ .../wireless/broadcom/brcm80211/brcmfmac/proto.h | 3 +-- 11 files changed, 47 insertions(+), 72 deletions(-) -- 1.9.1