]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: brcm80211: removed #ifdef SDIOH_API_ACCESS_RETRY_LIMIT
authorRoland Vossen <rvossen@broadcom.com>
Tue, 5 Jul 2011 22:02:52 +0000 (00:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jul 2011 02:47:51 +0000 (19:47 -0700)
SDIOH_API_ACCESS_RETRY_LIMIT is always defined.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/bcmsdh.c

index c9e20e1f9368e21e36ca07a95cf6aaab7a63d569..f4e72ed126b08a0c775eef1d04227b86172fd547 100644 (file)
@@ -189,26 +189,20 @@ u8 brcmf_sdcard_cfg_read(struct brcmf_sdio_card *card, uint fnc_num, u32 addr,
                         int *err)
 {
        int status;
-#ifdef SDIOH_API_ACCESS_RETRY_LIMIT
        s32 retry = 0;
-#endif
        u8 data = 0;
 
        if (!card)
                card = l_card;
 
-#ifdef SDIOH_API_ACCESS_RETRY_LIMIT
        do {
                if (retry)      /* wait for 1 ms till bus get settled down */
                        udelay(1000);
-#endif
                status =
                    brcmf_sdioh_cfg_read(card->sdioh, fnc_num, addr,
                                   (u8 *) &data);
-#ifdef SDIOH_API_ACCESS_RETRY_LIMIT
        } while (status != 0
                 && (retry++ < SDIOH_API_ACCESS_RETRY_LIMIT));
-#endif
        if (err)
                *err = status;
 
@@ -223,25 +217,19 @@ brcmf_sdcard_cfg_write(struct brcmf_sdio_card *card, uint fnc_num, u32 addr,
                       u8 data, int *err)
 {
        int status;
-#ifdef SDIOH_API_ACCESS_RETRY_LIMIT
        s32 retry = 0;
-#endif
 
        if (!card)
                card = l_card;
 
-#ifdef SDIOH_API_ACCESS_RETRY_LIMIT
        do {
                if (retry)      /* wait for 1 ms till bus get settled down */
                        udelay(1000);
-#endif
                status =
                    brcmf_sdioh_cfg_write(card->sdioh, fnc_num, addr,
                                    (u8 *) &data);
-#ifdef SDIOH_API_ACCESS_RETRY_LIMIT
        } while (status != 0
                 && (retry++ < SDIOH_API_ACCESS_RETRY_LIMIT));
-#endif
        if (err)
                *err = status;