diff options
Diffstat (limited to 'drivers/net/tulip/de4x5.c')
-rw-r--r-- | drivers/net/tulip/de4x5.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index 67bfd6f43366..6418f74415d7 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -1077,6 +1077,18 @@ static int (*dc_infoblock[])(struct net_device *dev, u_char, u_char *) = { | |||
1077 | mdelay(2); /* Wait for 2ms */\ | 1077 | mdelay(2); /* Wait for 2ms */\ |
1078 | } | 1078 | } |
1079 | 1079 | ||
1080 | static const struct net_device_ops de4x5_netdev_ops = { | ||
1081 | .ndo_open = de4x5_open, | ||
1082 | .ndo_stop = de4x5_close, | ||
1083 | .ndo_start_xmit = de4x5_queue_pkt, | ||
1084 | .ndo_get_stats = de4x5_get_stats, | ||
1085 | .ndo_set_multicast_list = set_multicast_list, | ||
1086 | .ndo_do_ioctl = de4x5_ioctl, | ||
1087 | .ndo_change_mtu = eth_change_mtu, | ||
1088 | .ndo_set_mac_address= eth_mac_addr, | ||
1089 | .ndo_validate_addr = eth_validate_addr, | ||
1090 | }; | ||
1091 | |||
1080 | 1092 | ||
1081 | static int __devinit | 1093 | static int __devinit |
1082 | de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) | 1094 | de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) |
@@ -1258,13 +1270,7 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) | |||
1258 | 1270 | ||
1259 | /* The DE4X5-specific entries in the device structure. */ | 1271 | /* The DE4X5-specific entries in the device structure. */ |
1260 | SET_NETDEV_DEV(dev, gendev); | 1272 | SET_NETDEV_DEV(dev, gendev); |
1261 | dev->open = &de4x5_open; | 1273 | dev->netdev_ops = &de4x5_netdev_ops; |
1262 | dev->hard_start_xmit = &de4x5_queue_pkt; | ||
1263 | dev->stop = &de4x5_close; | ||
1264 | dev->get_stats = &de4x5_get_stats; | ||
1265 | dev->set_multicast_list = &set_multicast_list; | ||
1266 | dev->do_ioctl = &de4x5_ioctl; | ||
1267 | |||
1268 | dev->mem_start = 0; | 1274 | dev->mem_start = 0; |
1269 | 1275 | ||
1270 | /* Fill in the generic fields of the device structure. */ | 1276 | /* Fill in the generic fields of the device structure. */ |