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

typhoon: update 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
8bdd5553 3bc124dd

+14 -8
+14 -8
drivers/net/typhoon.c
··· 2296 2296 return mode; 2297 2297 } 2298 2298 2299 + static const struct net_device_ops typhoon_netdev_ops = { 2300 + .ndo_open = typhoon_open, 2301 + .ndo_stop = typhoon_close, 2302 + .ndo_start_xmit = typhoon_start_tx, 2303 + .ndo_set_multicast_list = typhoon_set_rx_mode, 2304 + .ndo_tx_timeout = typhoon_tx_timeout, 2305 + .ndo_get_stats = typhoon_get_stats, 2306 + .ndo_validate_addr = eth_validate_addr, 2307 + .ndo_set_mac_address = typhoon_set_mac_address, 2308 + .ndo_change_mtu = eth_change_mtu, 2309 + .ndo_vlan_rx_register = typhoon_vlan_rx_register, 2310 + }; 2311 + 2299 2312 static int __devinit 2300 2313 typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 2301 2314 { ··· 2508 2495 } 2509 2496 2510 2497 /* The chip-specific entries in the device structure. */ 2511 - dev->open = typhoon_open; 2512 - dev->hard_start_xmit = typhoon_start_tx; 2513 - dev->stop = typhoon_close; 2514 - dev->set_multicast_list = typhoon_set_rx_mode; 2515 - dev->tx_timeout = typhoon_tx_timeout; 2498 + dev->netdev_ops = &typhoon_netdev_ops; 2516 2499 netif_napi_add(dev, &tp->napi, typhoon_poll, 16); 2517 2500 dev->watchdog_timeo = TX_TIMEOUT; 2518 - dev->get_stats = typhoon_get_stats; 2519 - dev->set_mac_address = typhoon_set_mac_address; 2520 - dev->vlan_rx_register = typhoon_vlan_rx_register; 2521 2501 2522 2502 SET_ETHTOOL_OPS(dev, &typhoon_ethtool_ops); 2523 2503