Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

3c527: convert to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
4394e653 90e64c6a

+13 -6
+13 -6
drivers/net/3c527.c
··· 288 288 return ERR_PTR(-ENODEV); 289 289 } 290 290 291 + static const struct net_device_ops netdev_ops = { 292 + .ndo_open = mc32_open, 293 + .ndo_stop = mc32_close, 294 + .ndo_start_xmit = mc32_send_packet, 295 + .ndo_get_stats = mc32_get_stats, 296 + .ndo_set_multicast_list = mc32_set_multicast_list, 297 + .ndo_tx_timeout = mc32_timeout, 298 + .ndo_change_mtu = eth_change_mtu, 299 + .ndo_set_mac_address = eth_mac_addr, 300 + .ndo_validate_addr = eth_validate_addr, 301 + }; 302 + 291 303 /** 292 304 * mc32_probe1 - Check a given slot for a board and test the card 293 305 * @dev: Device structure to fill in ··· 530 518 printk("%s: Firmware Rev %d. %d RX buffers, %d TX buffers. Base of 0x%08X.\n", 531 519 dev->name, lp->exec_box->data[12], lp->rx_len, lp->tx_len, lp->base); 532 520 533 - dev->open = mc32_open; 534 - dev->stop = mc32_close; 535 - dev->hard_start_xmit = mc32_send_packet; 536 - dev->get_stats = mc32_get_stats; 537 - dev->set_multicast_list = mc32_set_multicast_list; 538 - dev->tx_timeout = mc32_timeout; 521 + dev->netdev_ops = &netdev_ops; 539 522 dev->watchdog_timeo = HZ*5; /* Board does all the work */ 540 523 dev->ethtool_ops = &netdev_ethtool_ops; 541 524