staging: brcm80211: Remove unused module parameters.
Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
6174c3496d
commit
06fc8846a2
1 changed files with 6 additions and 42 deletions
|
@ -182,32 +182,6 @@ module_param(phymsglevel, int, 0);
|
||||||
#endif /* WLC_HIGH_ONLY */
|
#endif /* WLC_HIGH_ONLY */
|
||||||
#endif /* BCMDBG */
|
#endif /* BCMDBG */
|
||||||
|
|
||||||
static int oneonly;
|
|
||||||
module_param(oneonly, int, 0);
|
|
||||||
|
|
||||||
static int piomode;
|
|
||||||
module_param(piomode, int, 0);
|
|
||||||
|
|
||||||
static int instance_base; /* Starting instance number */
|
|
||||||
module_param(instance_base, int, 0);
|
|
||||||
|
|
||||||
#if defined(BCMDBG)
|
|
||||||
static char *macaddr;
|
|
||||||
module_param(macaddr, charp, S_IRUGO);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int nompc = 1;
|
|
||||||
module_param(nompc, int, 0);
|
|
||||||
|
|
||||||
static char name[IFNAMSIZ] = "eth%d";
|
|
||||||
module_param_string(name, name, IFNAMSIZ, 0);
|
|
||||||
|
|
||||||
#ifndef SRCBASE
|
|
||||||
#define SRCBASE "."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define WL_MAGIC 0xdeadbeef
|
|
||||||
|
|
||||||
#define HW_TO_WL(hw) (hw->priv)
|
#define HW_TO_WL(hw) (hw->priv)
|
||||||
#define WL_TO_HW(wl) (wl->pub->ieee_hw)
|
#define WL_TO_HW(wl) (wl->pub->ieee_hw)
|
||||||
#ifdef WLC_HIGH_ONLY
|
#ifdef WLC_HIGH_ONLY
|
||||||
|
@ -776,7 +750,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
||||||
struct ieee80211_hw *hw;
|
struct ieee80211_hw *hw;
|
||||||
u8 perm[ETH_ALEN];
|
u8 perm[ETH_ALEN];
|
||||||
|
|
||||||
unit = wl_found + instance_base;
|
unit = wl_found;
|
||||||
err = 0;
|
err = 0;
|
||||||
|
|
||||||
if (unit < 0) {
|
if (unit < 0) {
|
||||||
|
@ -784,11 +758,6 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oneonly && (unit != instance_base)) {
|
|
||||||
WL_ERROR(("wl%d: wl_attach: oneonly is set, exiting\n", unit));
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
osh = osl_attach(btparam, bustype);
|
osh = osl_attach(btparam, bustype);
|
||||||
ASSERT(osh);
|
ASSERT(osh);
|
||||||
|
|
||||||
|
@ -808,7 +777,6 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
||||||
#endif
|
#endif
|
||||||
ASSERT(wl);
|
ASSERT(wl);
|
||||||
|
|
||||||
wl->magic = WL_MAGIC;
|
|
||||||
wl->osh = osh;
|
wl->osh = osh;
|
||||||
atomic_set(&wl->callbacks, 0);
|
atomic_set(&wl->callbacks, 0);
|
||||||
|
|
||||||
|
@ -842,9 +810,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
||||||
base_addr = regs;
|
base_addr = regs;
|
||||||
|
|
||||||
if (bustype == PCI_BUS) {
|
if (bustype == PCI_BUS) {
|
||||||
/* piomode can be overwritten by command argument */
|
wl->piomode = false;
|
||||||
wl->piomode = piomode;
|
|
||||||
WL_TRACE(("PCI/%s\n", wl->piomode ? "PIO" : "DMA"));
|
|
||||||
} else if (bustype == RPC_BUS) {
|
} else if (bustype == RPC_BUS) {
|
||||||
/* Do nothing */
|
/* Do nothing */
|
||||||
} else {
|
} else {
|
||||||
|
@ -911,12 +877,10 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
||||||
wl_rpc_down, NULL, NULL);
|
wl_rpc_down, NULL, NULL);
|
||||||
#endif /* WLC_HIGH_ONLY */
|
#endif /* WLC_HIGH_ONLY */
|
||||||
|
|
||||||
if (nompc) {
|
|
||||||
if (wlc_iovar_setint(wl->wlc, "mpc", 0)) {
|
if (wlc_iovar_setint(wl->wlc, "mpc", 0)) {
|
||||||
WL_ERROR(("wl%d: Error setting MPC variable to 0\n",
|
WL_ERROR(("wl%d: Error setting MPC variable to 0\n",
|
||||||
unit));
|
unit));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#ifdef BCMSDIO
|
#ifdef BCMSDIO
|
||||||
/* Set SDIO drive strength */
|
/* Set SDIO drive strength */
|
||||||
wlc_iovar_setint(wl->wlc, "sd_drivestrength", sd_drivestrength);
|
wlc_iovar_setint(wl->wlc, "sd_drivestrength", sd_drivestrength);
|
||||||
|
@ -967,7 +931,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BCMDBG
|
#ifdef BCMDBG
|
||||||
printf(" (Compiled in " SRCBASE " at " __TIME__ " on " __DATE__ ")");
|
printf(" (Compiled at " __TIME__ " on " __DATE__ ")");
|
||||||
#endif /* BCMDBG */
|
#endif /* BCMDBG */
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue