brcm80211: fmac: only return success in brcmf_sdbrcm_bus_init() when true
authorArend van Spriel <arend@broadcom.com>
Thu, 9 Feb 2012 20:09:04 +0000 (21:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Feb 2012 19:48:51 +0000 (14:48 -0500)
commitc0e89f084b5089acdfdda1cb45c88896fa0f5139
treeadca7714127380f7fc6ef401376f1a037d2f6d94
parentf3d7cdc3b41804096a9df9c5d7a9439ef192f36a
brcm80211: fmac: only return success in brcmf_sdbrcm_bus_init() when true

The function brcmf_sdbrcm_bus_init() always returned success except for
firmware download failure. However, also when enabling SDIO function 2
is failing the function should return failure. This patch fixes that.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) 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_sdio.c