staging: brcm80211: remove fullmac module_param brcmf_idletime
authorFranky Lin <frankyl@broadcom.com>
Fri, 23 Sep 2011 00:07:48 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Sep 2011 23:55:33 +0000 (16:55 -0700)
Use constant for idle time setting.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/dhd.h
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c

index 1e18ad0521db78d8be5325ca75777240c9ee4050..7ca917203a95eacc9f22ed9fb19fb07acfffdd3b 100644 (file)
@@ -808,5 +808,6 @@ extern void brcmf_c_pktfilter_offload_enable(struct brcmf_pub *drvr, char *arg,
 #define BRCMF_IDLE_IMMEDIATE   (-1)
 #define BRCMF_IDLE_ACTIVE      0       /* Do not request any SD clock change
                                 when idle */
+#define BRCMF_IDLE_INTERVAL    1
 
 #endif                         /* _BRCMF_H_ */
index 4033e734d350fbf93b3359be5cda9c3a6b6569cb..57049eceb142f3e99868801c6cabe946abd82fc4 100644 (file)
@@ -747,9 +747,6 @@ module_param(brcmf_txbound, uint, 0);
 module_param(brcmf_rxbound, uint, 0);
 static uint brcmf_txminmax;
 
-int brcmf_idletime = 1;
-module_param(brcmf_idletime, int, 0);
-
 #define SDIO_DRIVE_STRENGTH    6       /* in milliamps */
 
 /* Use polling */
@@ -4650,7 +4647,7 @@ static bool brcmf_sdbrcm_probe_init(struct brcmf_bus *bus)
 
        /* ...and initialize clock/power states */
        bus->clkstate = CLK_SDONLY;
-       bus->idletime = (s32) brcmf_idletime;
+       bus->idletime = BRCMF_IDLE_INTERVAL;
        bus->idleclock = BRCMF_IDLE_ACTIVE;
 
        /* Query the F2 block size, set roundup accordingly */