brcm80211: fmac: make sure cancel_work_sync only called after INIT_WORK
authorFranky Lin <frankyl@broadcom.com>
Thu, 9 Feb 2012 20:09:01 +0000 (21:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Feb 2012 19:48:51 +0000 (14:48 -0500)
commit89fdb468e201c16b31d3337b68993bc9f763a5a0
tree1a3af40132904e807243375ab4c06e8b034e9dfb
parent2315992c2a6f395dd3dfd4ba50a164d5f3ded84d
brcm80211: fmac: make sure cancel_work_sync only called after INIT_WORK

INIT_WORK only gets called after brcmf_proto_attach returns
success. This dependency should be annotated in brcmf_detach to
avoid any error.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Franky Lin <frankyl@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/dhd_linux.c