brcmfmac: only disable clock when brcmf_sdio_bus_init() fails
authorArend van Spriel <arend@broadcom.com>
Mon, 6 Jan 2014 11:40:45 +0000 (12:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Jan 2014 20:48:03 +0000 (15:48 -0500)
commit76a4c6817c28dbc91fab8c366a177fa7215b2811
treebd80e8f0df859daa03b2fe4b923d6073b5a60b61
parentd6ae2c51becb5b901cbaf321e24a6362b14e4cdc
brcmfmac: only disable clock when brcmf_sdio_bus_init() fails

The condition to disable the clock at the end of brcmf_sdio_bus_init()
was wrong as the bus state is updated by the calling function. Hence,
the clock was always disabled after brcmf_sdio_bus_init() which was
not the intended behaviour.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@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