diff options
Diffstat (limited to 'drivers/net/3c501.c')
-rw-r--r-- | drivers/net/3c501.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/3c501.c b/drivers/net/3c501.c index 3d1318a3e688..1c5344aa57cc 100644 --- a/drivers/net/3c501.c +++ b/drivers/net/3c501.c | |||
@@ -197,6 +197,17 @@ out: | |||
197 | return ERR_PTR(err); | 197 | return ERR_PTR(err); |
198 | } | 198 | } |
199 | 199 | ||
200 | static const struct net_device_ops el_netdev_ops = { | ||
201 | .ndo_open = el_open, | ||
202 | .ndo_stop = el1_close, | ||
203 | .ndo_start_xmit = el_start_xmit, | ||
204 | .ndo_tx_timeout = el_timeout, | ||
205 | .ndo_set_multicast_list = set_multicast_list, | ||
206 | .ndo_change_mtu = eth_change_mtu, | ||
207 | .ndo_set_mac_address = eth_mac_addr, | ||
208 | .ndo_validate_addr = eth_validate_addr, | ||
209 | }; | ||
210 | |||
200 | /** | 211 | /** |
201 | * el1_probe1: | 212 | * el1_probe1: |
202 | * @dev: The device structure to use | 213 | * @dev: The device structure to use |
@@ -305,12 +316,8 @@ static int __init el1_probe1(struct net_device *dev, int ioaddr) | |||
305 | * The EL1-specific entries in the device structure. | 316 | * The EL1-specific entries in the device structure. |
306 | */ | 317 | */ |
307 | 318 | ||
308 | dev->open = &el_open; | 319 | dev->netdev_ops = &el_netdev_ops; |
309 | dev->hard_start_xmit = &el_start_xmit; | ||
310 | dev->tx_timeout = &el_timeout; | ||
311 | dev->watchdog_timeo = HZ; | 320 | dev->watchdog_timeo = HZ; |
312 | dev->stop = &el1_close; | ||
313 | dev->set_multicast_list = &set_multicast_list; | ||
314 | dev->ethtool_ops = &netdev_ethtool_ops; | 321 | dev->ethtool_ops = &netdev_ethtool_ops; |
315 | return 0; | 322 | return 0; |
316 | } | 323 | } |