diff options
author | Michael Hunold <devnull@localhost> | 2004-04-18 18:32:54 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2004-04-18 18:32:54 +0000 |
commit | 28826727d291e24eb7e8a42f9014c3b90cba96f7 (patch) | |
tree | 9d0e5144e466595e36a9f23160da052e6529f0d4 /linux/drivers/media/dvb | |
parent | bb5fb14ca2a1d9b90d348f604bfbb78f286b31a7 (diff) | |
download | mediapointer-dvb-s2-28826727d291e24eb7e8a42f9014c3b90cba96f7.tar.gz mediapointer-dvb-s2-28826727d291e24eb7e8a42f9014c3b90cba96f7.tar.bz2 |
- now really fix compilaton
Diffstat (limited to 'linux/drivers/media/dvb')
-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; |