diff options
author | Franky Lin <frankyl@broadcom.com> | 2012-04-28 03:56:57 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-09 03:53:54 +0200 |
commit | d9126e0c420b1ced6a2482aeda8380bca7fbebb0 (patch) | |
tree | da0905a46c3ab6dbddbfa5c2e0a393f803421449 /drivers/net/wireless/brcm80211 | |
parent | brcmfmac: stop releasing sdio host in irq handler (diff) | |
download | linux-d9126e0c420b1ced6a2482aeda8380bca7fbebb0.tar.xz linux-d9126e0c420b1ced6a2482aeda8380bca7fbebb0.zip |
brcmfmac: check bus state for status
Bus state should be the correct flag for bus status. Use it instead
of result from previous function call for backplane clock switch.
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c index a80b840051a7..ad46f34b582e 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c @@ -3509,7 +3509,7 @@ static int brcmf_sdbrcm_bus_init(struct device *dev) SBSDIO_FUNC1_CHIPCLKCSR, saveclk, &err); /* If we didn't come up, turn off backplane clock */ - if (!ret) + if (bus_if->state != BRCMF_BUS_DATA) brcmf_sdbrcm_clkctl(bus, CLK_NONE, false); exit: |