Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: brcm80211: Remove unused module parameters.

Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Brett Rudley and committed by
Greg Kroah-Hartman
06fc8846 6174c349

+6 -42
+6 -42
drivers/staging/brcm80211/sys/wl_mac80211.c
··· 182 182 #endif /* WLC_HIGH_ONLY */ 183 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 185 #define HW_TO_WL(hw) (hw->priv) 212 186 #define WL_TO_HW(wl) (wl->pub->ieee_hw) 213 187 #ifdef WLC_HIGH_ONLY ··· 750 776 struct ieee80211_hw *hw; 751 777 u8 perm[ETH_ALEN]; 752 778 753 - unit = wl_found + instance_base; 779 + unit = wl_found; 754 780 err = 0; 755 781 756 782 if (unit < 0) { 757 783 WL_ERROR(("wl%d: unit number overflow, exiting\n", unit)); 758 - return NULL; 759 - } 760 - 761 - if (oneonly && (unit != instance_base)) { 762 - WL_ERROR(("wl%d: wl_attach: oneonly is set, exiting\n", unit)); 763 784 return NULL; 764 785 } 765 786 ··· 777 808 #endif 778 809 ASSERT(wl); 779 810 780 - wl->magic = WL_MAGIC; 781 811 wl->osh = osh; 782 812 atomic_set(&wl->callbacks, 0); 783 813 ··· 810 842 base_addr = regs; 811 843 812 844 if (bustype == PCI_BUS) { 813 - /* piomode can be overwritten by command argument */ 814 - wl->piomode = piomode; 815 - WL_TRACE(("PCI/%s\n", wl->piomode ? "PIO" : "DMA")); 845 + wl->piomode = false; 816 846 } else if (bustype == RPC_BUS) { 817 847 /* Do nothing */ 818 848 } else { ··· 877 911 wl_rpc_down, NULL, NULL); 878 912 #endif /* WLC_HIGH_ONLY */ 879 913 880 - if (nompc) { 881 - if (wlc_iovar_setint(wl->wlc, "mpc", 0)) { 882 - WL_ERROR(("wl%d: Error setting MPC variable to 0\n", 883 - unit)); 884 - } 914 + if (wlc_iovar_setint(wl->wlc, "mpc", 0)) { 915 + WL_ERROR(("wl%d: Error setting MPC variable to 0\n", 916 + unit)); 885 917 } 886 918 #ifdef BCMSDIO 887 919 /* Set SDIO drive strength */ ··· 931 967 #endif 932 968 933 969 #ifdef BCMDBG 934 - printf(" (Compiled in " SRCBASE " at " __TIME__ " on " __DATE__ ")"); 970 + printf(" (Compiled at " __TIME__ " on " __DATE__ ")"); 935 971 #endif /* BCMDBG */ 936 972 printf("\n"); 937 973