aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-11-25 03:20:43 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 03:20:43 -0500
commit47fd5b8373ecc6bf5473e4139b62b06425448252 (patch)
tree6ff48ec3ba5ccf149109bc990ff1ec90cde8e14f /include/linux/netdevice.h
parent0ace285605314c54339710484b54814945a60df8 (diff)
netdev: add HAVE_NET_DEVICE_OPS
As a concession to vendors who have to deal with one source for different kernel versions, add a HAVE_NET_DEVICE_OPS so they don't end up hard coding ifdef against kernel version. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6095af572dfd..76a89f8e6a19 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -545,6 +545,7 @@ struct netdev_queue {
545 * 545 *
546 * void (*ndo_poll_controller)(struct net_device *dev); 546 * void (*ndo_poll_controller)(struct net_device *dev);
547 */ 547 */
548#define HAVE_NET_DEVICE_OPS
548struct net_device_ops { 549struct net_device_ops {
549 int (*ndo_init)(struct net_device *dev); 550 int (*ndo_init)(struct net_device *dev);
550 void (*ndo_uninit)(struct net_device *dev); 551 void (*ndo_uninit)(struct net_device *dev);