brcmfmac: free net device when registration fails
authorArend van Spriel <arend@broadcom.com>
Mon, 27 May 2013 19:09:56 +0000 (21:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 May 2013 17:43:09 +0000 (13:43 -0400)
commit9390ace916b2fd866c1762b1cd16c276d8c8c890
treeac39894c9a5f570a2f24578d67cf167e69a44617
parent24e28beef939df8666a5d2784d6617cd9bb910a0
brcmfmac: free net device when registration fails

When registration fails the net device is no longer needed. Free
the net device and remove reference to private data from the
driver.

Reviewed-by: Hante Meuleman <meuleman@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
drivers/net/wireless/brcm80211/brcmfmac/fweh.c