aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-12 13:37:21 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-12 15:28:58 -0400
commite2270ea62ae4d7a47d6d72942cdb8c669be6357a (patch)
tree3042f8e18df5d725a538ea4335253c6cdebb0073 /drivers/staging
parentb691347a92e12e0bf19fe500eb23cf0363f2ecd5 (diff)
netdevice: Kill 'feature' test macros.
Almost all of these have long outstayed their welcome. And for every one of these macros, there are 10 features for which we didn't add macros. Let's just delete them all, and get out of habit of doing things this way. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/ft1000/ft1000-usb/ft1000_hw.c9
-rw-r--r--drivers/staging/wlags49_h2/wl_internal.h7
2 files changed, 0 insertions, 16 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
index b0a4211f43a1..3f303ea14337 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
@@ -671,7 +671,6 @@ static int ft1000_reset_card(struct net_device *dev)
671 return TRUE; 671 return TRUE;
672} 672}
673 673
674#ifdef HAVE_NET_DEVICE_OPS
675static const struct net_device_ops ftnet_ops = 674static const struct net_device_ops ftnet_ops =
676{ 675{
677 .ndo_open = &ft1000_open, 676 .ndo_open = &ft1000_open,
@@ -679,7 +678,6 @@ static const struct net_device_ops ftnet_ops =
679 .ndo_start_xmit = &ft1000_start_xmit, 678 .ndo_start_xmit = &ft1000_start_xmit,
680 .ndo_get_stats = &ft1000_netdev_stats, 679 .ndo_get_stats = &ft1000_netdev_stats,
681}; 680};
682#endif
683 681
684 682
685//--------------------------------------------------------------------------- 683//---------------------------------------------------------------------------
@@ -764,14 +762,7 @@ int init_ft1000_netdev(struct ft1000_device *ft1000dev)
764 762
765 INIT_LIST_HEAD(&pInfo->nodes.list); 763 INIT_LIST_HEAD(&pInfo->nodes.list);
766 764
767#ifdef HAVE_NET_DEVICE_OPS
768 netdev->netdev_ops = &ftnet_ops; 765 netdev->netdev_ops = &ftnet_ops;
769#else
770 netdev->hard_start_xmit = &ft1000_start_xmit;
771 netdev->get_stats = &ft1000_netdev_stats;
772 netdev->open = &ft1000_open;
773 netdev->stop = &ft1000_close;
774#endif
775 766
776 ft1000dev->net = netdev; 767 ft1000dev->net = netdev;
777 768
diff --git a/drivers/staging/wlags49_h2/wl_internal.h b/drivers/staging/wlags49_h2/wl_internal.h
index cd129b3ee6c0..e86aad53b53d 100644
--- a/drivers/staging/wlags49_h2/wl_internal.h
+++ b/drivers/staging/wlags49_h2/wl_internal.h
@@ -990,14 +990,7 @@ struct wl_private
990#endif // USE_WDS 990#endif // USE_WDS
991}; // wl_private 991}; // wl_private
992 992
993#ifdef HAVE_NETDEV_PRIV
994#define wl_priv(dev) ((struct wl_private *) netdev_priv(dev)) 993#define wl_priv(dev) ((struct wl_private *) netdev_priv(dev))
995#else
996extern inline struct wl_private *wl_priv(struct net_device *dev)
997{
998 return dev->priv;
999}
1000#endif
1001 994
1002/********************************************************************/ 995/********************************************************************/
1003/* Locking and synchronization functions */ 996/* Locking and synchronization functions */