diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-12 13:37:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-12 15:28:58 -0400 |
commit | e2270ea62ae4d7a47d6d72942cdb8c669be6357a (patch) | |
tree | 3042f8e18df5d725a538ea4335253c6cdebb0073 /drivers | |
parent | b691347a92e12e0bf19fe500eb23cf0363f2ecd5 (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')
-rw-r--r-- | drivers/net/cxgb4vf/cxgb4vf_main.c | 17 | ||||
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | 9 | ||||
-rw-r--r-- | drivers/staging/wlags49_h2/wl_internal.h | 7 |
3 files changed, 0 insertions, 33 deletions
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index 8a6f8911bc55..3942a825b3dd 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c | |||
@@ -2421,7 +2421,6 @@ static int __devinit enable_msix(struct adapter *adapter) | |||
2421 | return err; | 2421 | return err; |
2422 | } | 2422 | } |
2423 | 2423 | ||
2424 | #ifdef HAVE_NET_DEVICE_OPS | ||
2425 | static const struct net_device_ops cxgb4vf_netdev_ops = { | 2424 | static const struct net_device_ops cxgb4vf_netdev_ops = { |
2426 | .ndo_open = cxgb4vf_open, | 2425 | .ndo_open = cxgb4vf_open, |
2427 | .ndo_stop = cxgb4vf_stop, | 2426 | .ndo_stop = cxgb4vf_stop, |
@@ -2437,7 +2436,6 @@ static const struct net_device_ops cxgb4vf_netdev_ops = { | |||
2437 | .ndo_poll_controller = cxgb4vf_poll_controller, | 2436 | .ndo_poll_controller = cxgb4vf_poll_controller, |
2438 | #endif | 2437 | #endif |
2439 | }; | 2438 | }; |
2440 | #endif | ||
2441 | 2439 | ||
2442 | /* | 2440 | /* |
2443 | * "Probe" a device: initialize a device and construct all kernel and driver | 2441 | * "Probe" a device: initialize a device and construct all kernel and driver |
@@ -2611,22 +2609,7 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev, | |||
2611 | if (pci_using_dac) | 2609 | if (pci_using_dac) |
2612 | netdev->features |= NETIF_F_HIGHDMA; | 2610 | netdev->features |= NETIF_F_HIGHDMA; |
2613 | 2611 | ||
2614 | #ifdef HAVE_NET_DEVICE_OPS | ||
2615 | netdev->netdev_ops = &cxgb4vf_netdev_ops; | 2612 | netdev->netdev_ops = &cxgb4vf_netdev_ops; |
2616 | #else | ||
2617 | netdev->vlan_rx_register = cxgb4vf_vlan_rx_register; | ||
2618 | netdev->open = cxgb4vf_open; | ||
2619 | netdev->stop = cxgb4vf_stop; | ||
2620 | netdev->hard_start_xmit = t4vf_eth_xmit; | ||
2621 | netdev->get_stats = cxgb4vf_get_stats; | ||
2622 | netdev->set_rx_mode = cxgb4vf_set_rxmode; | ||
2623 | netdev->do_ioctl = cxgb4vf_do_ioctl; | ||
2624 | netdev->change_mtu = cxgb4vf_change_mtu; | ||
2625 | netdev->set_mac_address = cxgb4vf_set_mac_addr; | ||
2626 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
2627 | netdev->poll_controller = cxgb4vf_poll_controller; | ||
2628 | #endif | ||
2629 | #endif | ||
2630 | SET_ETHTOOL_OPS(netdev, &cxgb4vf_ethtool_ops); | 2613 | SET_ETHTOOL_OPS(netdev, &cxgb4vf_ethtool_ops); |
2631 | 2614 | ||
2632 | /* | 2615 | /* |
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 | ||
675 | static const struct net_device_ops ftnet_ops = | 674 | static 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 | ||
996 | extern 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 */ |