diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/8390.c | 11 | ||||
-rw-r--r-- | drivers/net/8390p.c | 11 | ||||
-rw-r--r-- | drivers/net/lib8390.c | 6 |
3 files changed, 20 insertions, 8 deletions
diff --git a/drivers/net/8390.c b/drivers/net/8390.c index 029ad08f0330..fbe609a51e02 100644 --- a/drivers/net/8390.c +++ b/drivers/net/8390.c | |||
@@ -72,7 +72,16 @@ EXPORT_SYMBOL(ei_netdev_ops); | |||
72 | 72 | ||
73 | struct net_device *__alloc_ei_netdev(int size) | 73 | struct net_device *__alloc_ei_netdev(int size) |
74 | { | 74 | { |
75 | return ____alloc_ei_netdev(size); | 75 | struct net_device *dev = ____alloc_ei_netdev(size); |
76 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | ||
77 | if (dev) { | ||
78 | dev->hard_start_xmit = ei_start_xmit; | ||
79 | dev->get_stats = ei_get_stats; | ||
80 | dev->set_multicast_list = ei_set_multicast_list; | ||
81 | dev->tx_timeout = ei_tx_timeout; | ||
82 | } | ||
83 | #endif | ||
84 | return dev; | ||
76 | } | 85 | } |
77 | EXPORT_SYMBOL(__alloc_ei_netdev); | 86 | EXPORT_SYMBOL(__alloc_ei_netdev); |
78 | 87 | ||
diff --git a/drivers/net/8390p.c b/drivers/net/8390p.c index 9c916d4d206e..ee70b358a816 100644 --- a/drivers/net/8390p.c +++ b/drivers/net/8390p.c | |||
@@ -77,7 +77,16 @@ EXPORT_SYMBOL(eip_netdev_ops); | |||
77 | 77 | ||
78 | struct net_device *__alloc_eip_netdev(int size) | 78 | struct net_device *__alloc_eip_netdev(int size) |
79 | { | 79 | { |
80 | return ____alloc_ei_netdev(size); | 80 | struct net_device *dev = ____alloc_ei_netdev(size); |
81 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | ||
82 | if (dev) { | ||
83 | dev->hard_start_xmit = eip_start_xmit; | ||
84 | dev->get_stats = eip_get_stats; | ||
85 | dev->set_multicast_list = eip_set_multicast_list; | ||
86 | dev->tx_timeout = eip_tx_timeout; | ||
87 | } | ||
88 | #endif | ||
89 | return dev; | ||
81 | } | 90 | } |
82 | EXPORT_SYMBOL(__alloc_eip_netdev); | 91 | EXPORT_SYMBOL(__alloc_eip_netdev); |
83 | 92 | ||
diff --git a/drivers/net/lib8390.c b/drivers/net/lib8390.c index 1d36ca4dc6b9..789b6cb744b2 100644 --- a/drivers/net/lib8390.c +++ b/drivers/net/lib8390.c | |||
@@ -1010,12 +1010,6 @@ static void ethdev_setup(struct net_device *dev) | |||
1010 | if (ei_debug > 1) | 1010 | if (ei_debug > 1) |
1011 | printk(version); | 1011 | printk(version); |
1012 | 1012 | ||
1013 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | ||
1014 | dev->hard_start_xmit = ei_start_xmit; | ||
1015 | dev->get_stats = ei_get_stats; | ||
1016 | dev->set_multicast_list = ei_set_multicast_list; | ||
1017 | dev->tx_timeout = __ei_tx_timeout; | ||
1018 | #endif | ||
1019 | ether_setup(dev); | 1013 | ether_setup(dev); |
1020 | 1014 | ||
1021 | spin_lock_init(&ei_local->page_lock); | 1015 | spin_lock_init(&ei_local->page_lock); |