Commit e882335bb19c0b9f96971fa6b1fe6c019280056b

Authored by Alexander Beregalov
Committed by Greg Kroah-Hartman
1 parent 70f38b1053

Staging: vt665x: depend on WIRELESS_EXT

Make vt665x depended on WIRELESS_EXT and remove remain ifdef's

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 7 changed files with 2 additions and 27 deletions Side-by-side Diff

drivers/staging/vt6655/Kconfig
1 1 config VT6655
2 2 tristate "VIA Technologies VT6655 support"
3   - depends on PCI
  3 + depends on WIRELESS_EXT && PCI
4 4 ---help---
5 5 This is a vendor-written driver for VIA VT6655.
drivers/staging/vt6655/device.h
... ... @@ -950,9 +950,7 @@
950 950 UINT uChannel;
951 951 BOOL bMACSuspend;
952 952  
953   -#ifdef WIRELESS_EXT
954 953 struct iw_statistics wstats; // wireless stats
955   -#endif /* WIRELESS_EXT */
956 954 BOOL bCommit;
957 955  
958 956 } DEVICE_INFO, *PSDevice;
drivers/staging/vt6655/device_main.c
... ... @@ -1146,9 +1146,7 @@
1146 1146 dev->irq = pcid->irq;
1147 1147 dev->netdev_ops = &device_netdev_ops;
1148 1148  
1149   -#ifdef CONFIG_WIRELESS_EXT
1150 1149 dev->wireless_handlers = (struct iw_handler_def *)&iwctl_handler_def;
1151   -#endif
1152 1150  
1153 1151 rc = register_netdev(dev);
1154 1152 if (rc)
1155 1153  
... ... @@ -3396,10 +3394,8 @@
3396 3394 PSDevice pDevice = (PSDevice)netdev_priv(dev);
3397 3395 #endif
3398 3396  
3399   -#ifdef WIRELESS_EXT
3400 3397 struct iwreq *wrq = (struct iwreq *) rq;
3401 3398 int rc =0;
3402   -#endif
3403 3399 PSMgmtObject pMgmt = pDevice->pMgmt;
3404 3400 PSCmdRequest pReq;
3405 3401  
... ... @@ -3411,8 +3407,6 @@
3411 3407  
3412 3408 switch(cmd) {
3413 3409  
3414   -#ifdef WIRELESS_EXT
3415   -
3416 3410 case SIOCGIWNAME:
3417 3411 rc = iwctl_giwname(dev, NULL, (char *)&(wrq->u.name), NULL);
3418 3412 break;
... ... @@ -3750,8 +3744,6 @@
3750 3744  
3751 3745 #endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
3752 3746 //End Add -- //2008-0409-07, <Add> by Einsn Liu
3753   -
3754   -#endif // WIRELESS_EXT
3755 3747  
3756 3748 case IOCTL_CMD_TEST:
3757 3749  
drivers/staging/vt6655/iwctl.c
... ... @@ -80,8 +80,6 @@
80 80 #define SUPPORTED_WIRELESS_EXT 17
81 81 #endif
82 82  
83   -#ifdef WIRELESS_EXT
84   -
85 83 static const long frequency_list[] = {
86 84 2412, 2417, 2422, 2427, 2432, 2437, 2442, 2447, 2452, 2457, 2462, 2467, 2472, 2484,
87 85 4915, 4920, 4925, 4935, 4940, 4945, 4960, 4980,
88 86  
... ... @@ -90,9 +88,7 @@
90 88 5700, 5745, 5765, 5785, 5805, 5825
91 89 };
92 90  
93   -#endif
94 91  
95   -
96 92 /*--------------------- Static Classes ----------------------------*/
97 93  
98 94  
... ... @@ -105,8 +101,6 @@
105 101  
106 102 /*--------------------- Export Variables --------------------------*/
107 103  
108   -#ifdef WIRELESS_EXT
109   -
110 104 struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev)
111 105 {
112 106 PSDevice pDevice = netdev_priv(dev);
... ... @@ -2314,8 +2308,4 @@
2314 2308 .private = NULL,
2315 2309 .private_args = NULL,
2316 2310 };
2317   -
2318   -
2319   -
2320   -#endif // WIRELESS_EXT
drivers/staging/vt6655/iwctl.h
... ... @@ -50,8 +50,6 @@
50 50 #endif /* __cplusplus */
51 51  
52 52  
53   -#ifdef WIRELESS_EXT
54   -
55 53 struct iw_statistics *iwctl_get_wireless_stats (struct net_device *dev);
56 54  
57 55  
... ... @@ -230,8 +228,6 @@
230 228 char *extra);
231 229 #endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
232 230  
233   -
234   -#endif
235 231  
236 232 extern const struct iw_handler_def iwctl_handler_def;
237 233 extern const struct iw_priv_args iwctl_private_args;
drivers/staging/vt6656/Kconfig
1 1 config VT6656
2 2 tristate "VIA Technologies VT6656 support"
  3 + depends on WIRELESS_EXT && USB
3 4 ---help---
4 5 This is a vendor-written driver for VIA VT6656.
drivers/staging/vt6656/main_usb.c
... ... @@ -856,9 +856,7 @@
856 856  
857 857 netdev->netdev_ops = &device_netdev_ops;
858 858  
859   -#ifdef CONFIG_WIRELESS_EXT
860 859 netdev->wireless_handlers = (struct iw_handler_def *)&iwctl_handler_def;
861   -#endif /* WIRELESS_EXT */
862 860  
863 861 //2008-0623-01<Remark>by MikeLiu
864 862 //2007-0821-01<Add>by MikeLiu