From: Stephen Hemminger Date: Tue, 25 Nov 2008 08:20:43 +0000 (-0800) Subject: netdev: add HAVE_NET_DEVICE_OPS X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=47fd5b8373ecc6bf5473e4139b62b06425448252;p=linux-beck.git 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 Signed-off-by: David S. Miller --- 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 { * * void (*ndo_poll_controller)(struct net_device *dev); */ +#define HAVE_NET_DEVICE_OPS struct net_device_ops { int (*ndo_init)(struct net_device *dev); void (*ndo_uninit)(struct net_device *dev);