diff options
author | Brett Rudley <brudley@broadcom.com> | 2010-11-10 20:19:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-11 08:05:00 -0500 |
commit | 06fc8846a2c0ddcc51e6666a78fc29a8e749ca3b (patch) | |
tree | 2abd9e274feefafb65c2c27b668916a651d79c19 /drivers | |
parent | 6174c3496d43b78969d4a989e1aabfbc55acbf15 (diff) |
staging: brcm80211: Remove unused module parameters.
Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/brcm80211/sys/wl_mac80211.c | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/drivers/staging/brcm80211/sys/wl_mac80211.c b/drivers/staging/brcm80211/sys/wl_mac80211.c index cb5dba95fc86..4b59e073aa15 100644 --- a/drivers/staging/brcm80211/sys/wl_mac80211.c +++ b/drivers/staging/brcm80211/sys/wl_mac80211.c | |||
@@ -182,32 +182,6 @@ module_param(phymsglevel, int, 0); | |||
182 | #endif /* WLC_HIGH_ONLY */ | 182 | #endif /* WLC_HIGH_ONLY */ |
183 | #endif /* BCMDBG */ | 183 | #endif /* BCMDBG */ |
184 | 184 | ||
185 | static int oneonly; | ||
186 | module_param(oneonly, int, 0); | ||
187 | |||
188 | static int piomode; | ||
189 | module_param(piomode, int, 0); | ||
190 | |||
191 | static int instance_base; /* Starting instance number */ | ||
192 | module_param(instance_base, int, 0); | ||
193 | |||
194 | #if defined(BCMDBG) | ||
195 | static char *macaddr; | ||
196 | module_param(macaddr, charp, S_IRUGO); | ||
197 | #endif | ||
198 | |||
199 | static int nompc = 1; | ||
200 | module_param(nompc, int, 0); | ||
201 | |||
202 | static char name[IFNAMSIZ] = "eth%d"; | ||
203 | module_param_string(name, name, IFNAMSIZ, 0); | ||
204 | |||
205 | #ifndef SRCBASE | ||
206 | #define SRCBASE "." | ||
207 | #endif | ||
208 | |||
209 | #define WL_MAGIC 0xdeadbeef | ||
210 | |||
211 | #define HW_TO_WL(hw) (hw->priv) | 185 | #define HW_TO_WL(hw) (hw->priv) |
212 | #define WL_TO_HW(wl) (wl->pub->ieee_hw) | 186 | #define WL_TO_HW(wl) (wl->pub->ieee_hw) |
213 | #ifdef WLC_HIGH_ONLY | 187 | #ifdef WLC_HIGH_ONLY |
@@ -776,7 +750,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs, | |||
776 | struct ieee80211_hw *hw; | 750 | struct ieee80211_hw *hw; |
777 | u8 perm[ETH_ALEN]; | 751 | u8 perm[ETH_ALEN]; |
778 | 752 | ||
779 | unit = wl_found + instance_base; | 753 | unit = wl_found; |
780 | err = 0; | 754 | err = 0; |
781 | 755 | ||
782 | if (unit < 0) { | 756 | if (unit < 0) { |
@@ -784,11 +758,6 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs, | |||
784 | return NULL; | 758 | return NULL; |
785 | } | 759 | } |
786 | 760 | ||
787 | if (oneonly && (unit != instance_base)) { | ||
788 | WL_ERROR(("wl%d: wl_attach: oneonly is set, exiting\n", unit)); | ||
789 | return NULL; | ||
790 | } | ||
791 | |||
792 | osh = osl_attach(btparam, bustype); | 761 | osh = osl_attach(btparam, bustype); |
793 | ASSERT(osh); | 762 | ASSERT(osh); |
794 | 763 | ||
@@ -808,7 +777,6 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs, | |||
808 | #endif | 777 | #endif |
809 | ASSERT(wl); | 778 | ASSERT(wl); |
810 | 779 | ||
811 | wl->magic = WL_MAGIC; | ||
812 | wl->osh = osh; | 780 | wl->osh = osh; |
813 | atomic_set(&wl->callbacks, 0); | 781 | atomic_set(&wl->callbacks, 0); |
814 | 782 | ||
@@ -842,9 +810,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs, | |||
842 | base_addr = regs; | 810 | base_addr = regs; |
843 | 811 | ||
844 | if (bustype == PCI_BUS) { | 812 | if (bustype == PCI_BUS) { |
845 | /* piomode can be overwritten by command argument */ | 813 | wl->piomode = false; |
846 | wl->piomode = piomode; | ||
847 | WL_TRACE(("PCI/%s\n", wl->piomode ? "PIO" : "DMA")); | ||
848 | } else if (bustype == RPC_BUS) { | 814 | } else if (bustype == RPC_BUS) { |
849 | /* Do nothing */ | 815 | /* Do nothing */ |
850 | } else { | 816 | } else { |
@@ -911,11 +877,9 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs, | |||
911 | wl_rpc_down, NULL, NULL); | 877 | wl_rpc_down, NULL, NULL); |
912 | #endif /* WLC_HIGH_ONLY */ | 878 | #endif /* WLC_HIGH_ONLY */ |
913 | 879 | ||
914 | if (nompc) { | 880 | if (wlc_iovar_setint(wl->wlc, "mpc", 0)) { |
915 | if (wlc_iovar_setint(wl->wlc, "mpc", 0)) { | 881 | WL_ERROR(("wl%d: Error setting MPC variable to 0\n", |
916 | WL_ERROR(("wl%d: Error setting MPC variable to 0\n", | 882 | unit)); |
917 | unit)); | ||
918 | } | ||
919 | } | 883 | } |
920 | #ifdef BCMSDIO | 884 | #ifdef BCMSDIO |
921 | /* Set SDIO drive strength */ | 885 | /* Set SDIO drive strength */ |
@@ -967,7 +931,7 @@ static wl_info_t *wl_attach(u16 vendor, u16 device, unsigned long regs, | |||
967 | #endif | 931 | #endif |
968 | 932 | ||
969 | #ifdef BCMDBG | 933 | #ifdef BCMDBG |
970 | printf(" (Compiled in " SRCBASE " at " __TIME__ " on " __DATE__ ")"); | 934 | printf(" (Compiled at " __TIME__ " on " __DATE__ ")"); |
971 | #endif /* BCMDBG */ | 935 | #endif /* BCMDBG */ |
972 | printf("\n"); | 936 | printf("\n"); |
973 | 937 | ||