diff options
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_net.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c index dcb9016a1..db10fab56 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_net.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c @@ -981,8 +981,9 @@ static int dvb_net_init_dev (struct net_device *dev) static void dvb_net_setup(struct net_device *dev) #endif { - /* struct dvb_net_priv *priv = (struct dvb_net_priv*)dev->priv; */ - +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) + struct dvb_net_priv *priv = (struct dvb_net_priv*)dev->priv; +#endif ether_setup(dev); dev->open = dvb_net_open; @@ -995,7 +996,7 @@ static void dvb_net_setup(struct net_device *dev) dev->mtu = 4096; dev->mc_count = 0; dev->hard_header_cache = NULL; -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) dev->owner = priv->host->dvbdev->adapter->module; #endif dev->flags |= IFF_NOARP; |