diff options
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c index 1e96ebf01295..2c644a93c5bc 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | |||
@@ -653,13 +653,13 @@ static void | |||
653 | w_sdreg32(struct brcmf_sdio *bus, u32 regval, u32 reg_offset, u32 *retryvar) | 653 | w_sdreg32(struct brcmf_sdio *bus, u32 regval, u32 reg_offset, u32 *retryvar) |
654 | { | 654 | { |
655 | u8 idx = brcmf_sdio_chip_getinfidx(bus->ci, BCMA_CORE_SDIO_DEV); | 655 | u8 idx = brcmf_sdio_chip_getinfidx(bus->ci, BCMA_CORE_SDIO_DEV); |
656 | int ret; | ||
656 | *retryvar = 0; | 657 | *retryvar = 0; |
657 | do { | 658 | do { |
658 | brcmf_sdcard_reg_write(bus->sdiodev, | 659 | brcmf_sdio_regwl(bus->sdiodev, |
659 | bus->ci->c_inf[idx].base + reg_offset, | 660 | bus->ci->c_inf[idx].base + reg_offset, |
660 | regval); | 661 | regval, &ret); |
661 | } while (brcmf_sdcard_regfail(bus->sdiodev) && | 662 | } while ((ret != 0) && (++(*retryvar) <= retry_limit)); |
662 | (++(*retryvar) <= retry_limit)); | ||
663 | if (*retryvar) { | 663 | if (*retryvar) { |
664 | bus->regfails += (*retryvar-1); | 664 | bus->regfails += (*retryvar-1); |
665 | if (*retryvar > retry_limit) | 665 | if (*retryvar > retry_limit) |
@@ -3751,7 +3751,7 @@ brcmf_sdbrcm_probe_attach(struct brcmf_sdio *bus, u32 regsva) | |||
3751 | reg_addr = bus->ci->c_inf[idx].base + | 3751 | reg_addr = bus->ci->c_inf[idx].base + |
3752 | offsetof(struct sdpcmd_regs, corecontrol); | 3752 | offsetof(struct sdpcmd_regs, corecontrol); |
3753 | reg_val = brcmf_sdio_regrl(bus->sdiodev, reg_addr, NULL); | 3753 | reg_val = brcmf_sdio_regrl(bus->sdiodev, reg_addr, NULL); |
3754 | brcmf_sdcard_reg_write(bus->sdiodev, reg_addr, reg_val | CC_BPRESEN); | 3754 | brcmf_sdio_regwl(bus->sdiodev, reg_addr, reg_val | CC_BPRESEN, NULL); |
3755 | 3755 | ||
3756 | brcmu_pktq_init(&bus->txq, (PRIOMASK + 1), TXQLEN); | 3756 | brcmu_pktq_init(&bus->txq, (PRIOMASK + 1), TXQLEN); |
3757 | 3757 | ||