]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: brcm80211: remove macro definitions from brcmsmac Makefile
authorArend van Spriel <arend@broadcom.com>
Fri, 26 Aug 2011 13:19:29 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 26 Aug 2011 17:53:10 +0000 (10:53 -0700)
The Makefile for the brcmsmac driver contains macro definitions that
are always set and even some are not used in the source code anymore.
This patch removes those definitions from the Makefile and source code.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/Makefile
drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c
drivers/staging/brcm80211/brcmsmac/srom.c

index 3147c487188fb479257c32dfe099331244c05a75..eee2fe30ca789151f9e4525e5384793549ac1dd9 100644 (file)
 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 ccflags-y :=                           \
-       -DWLC_HIGH                              \
-       -DWLC_LOW                               \
-       -DSTA                                   \
-       -DWME                                   \
-       -DWL11N                                 \
-       -DDBAND                                 \
-       -DBCMNVRAMR                             \
        -Idrivers/staging/brcm80211/brcmsmac \
        -Idrivers/staging/brcm80211/brcmsmac/phy \
        -Idrivers/staging/brcm80211/include
index 5307bd8c258d95c9bc0a73a03c841ad59d398921..cbb0bde439ee7c45d1c2492022b903858acfa08a 100644 (file)
@@ -1666,13 +1666,10 @@ void wlc_phy_txpower_recalc_target(struct brcms_phy *pi)
                        }
                }
        }
-#if WL11N
+
        max_num_rate = ((ISNPHY(pi)) ? (TXP_NUM_RATES) :
                        ((ISLCNPHY(pi)) ?
                         (TXP_LAST_SISO_MCS_20 + 1) : (TXP_LAST_OFDM + 1)));
-#else
-       max_num_rate = ((ISNPHY(pi)) ? (TXP_NUM_RATES) : (TXP_LAST_OFDM + 1));
-#endif
 
        wlc_phy_upd_env_txpwr_rate_limits(pi, band);
 
index 90e2ac80c22817ef3450ffb3c6baa8524b2c33c2..a8f7c008628352aec6a3dff0408600f1da170299 100644 (file)
@@ -798,9 +798,7 @@ static int initvars_srom_pci(struct si_pub *sih, void *curmap, char **vars,
                             uint *count);
 static int sprom_read_pci(struct si_pub *sih, u16 *sprom,
                          uint wordoff, u16 *buf, uint nwords, bool check_crc);
-#if defined(BCMNVRAMR)
 static int otp_read_pci(struct si_pub *sih, u16 *buf, uint bufsz);
-#endif
 
 static int initvars_table(char *start, char *end,
                          char **vars, uint *count);
@@ -940,7 +938,6 @@ sprom_read_pci(struct si_pub *sih, u16 *sprom, uint wordoff,
        return err;
 }
 
-#if defined(BCMNVRAMR)
 static int otp_read_pci(struct si_pub *sih, u16 *buf, uint bufsz)
 {
        u8 *otp;
@@ -976,7 +973,7 @@ static int otp_read_pci(struct si_pub *sih, u16 *buf, uint bufsz)
 
        return err;
 }
-#endif                         /* defined(BCMNVRAMR) */
+
 /*
 * Create variable table from memory.
 * Return 0 on success, nonzero on error.
@@ -1208,18 +1205,13 @@ static int initvars_srom_pci(struct si_pub *sih, void *curmap, char **vars,
                                sromrev = 1;
                }
        }
-#if defined(BCMNVRAMR)
-       /* Use OTP if SPROM not available */
        else {
+               /* Use OTP if SPROM not available */
                err = otp_read_pci(sih, srom, SROM_MAX);
                if (err == 0)
                        /* OTP only contain SROM rev8/rev9 for now */
                        sromrev = srom[SROM4_CRCREV] & 0xff;
        }
-#else
-       else
-               err = -ENODEV;
-#endif
 
        if (!err) {
                /* Bitmask for the sromrev */