diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-21 20:28:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 20:28:33 -0500 |
commit | e48714baac0e81ed9e19a5785eee52e1eca8f56e (patch) | |
tree | 58a9fd86ba31d4a4fd87cdc91294ce1faa24c15b /drivers/net/jme.c | |
parent | e245a3855eec42127b722ed9688a49ec3f3c9a27 (diff) |
jme: convert driver to net_device_ops
Convert driver to new net_device_ops. Compile tested only.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r-- | drivers/net/jme.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 0430ffb62364..c3873879003b 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -2625,6 +2625,18 @@ jme_check_hw_ver(struct jme_adapter *jme) | |||
2625 | jme->chiprev = (chipmode & CM_CHIPREV_MASK) >> CM_CHIPREV_SHIFT; | 2625 | jme->chiprev = (chipmode & CM_CHIPREV_MASK) >> CM_CHIPREV_SHIFT; |
2626 | } | 2626 | } |
2627 | 2627 | ||
2628 | static const struct net_device_ops jme_netdev_ops = { | ||
2629 | .ndo_open = jme_open, | ||
2630 | .ndo_stop = jme_close, | ||
2631 | .ndo_validate_addr = eth_validate_addr, | ||
2632 | .ndo_start_xmit = jme_start_xmit, | ||
2633 | .ndo_set_mac_address = jme_set_macaddr, | ||
2634 | .ndo_set_multicast_list = jme_set_multi, | ||
2635 | .ndo_change_mtu = jme_change_mtu, | ||
2636 | .ndo_tx_timeout = jme_tx_timeout, | ||
2637 | .ndo_vlan_rx_register = jme_vlan_rx_register, | ||
2638 | }; | ||
2639 | |||
2628 | static int __devinit | 2640 | static int __devinit |
2629 | jme_init_one(struct pci_dev *pdev, | 2641 | jme_init_one(struct pci_dev *pdev, |
2630 | const struct pci_device_id *ent) | 2642 | const struct pci_device_id *ent) |
@@ -2674,17 +2686,9 @@ jme_init_one(struct pci_dev *pdev, | |||
2674 | rc = -ENOMEM; | 2686 | rc = -ENOMEM; |
2675 | goto err_out_release_regions; | 2687 | goto err_out_release_regions; |
2676 | } | 2688 | } |
2677 | netdev->open = jme_open; | 2689 | netdev->netdev_ops = &jme_netdev_ops; |
2678 | netdev->stop = jme_close; | ||
2679 | netdev->hard_start_xmit = jme_start_xmit; | ||
2680 | netdev->set_mac_address = jme_set_macaddr; | ||
2681 | netdev->set_multicast_list = jme_set_multi; | ||
2682 | netdev->change_mtu = jme_change_mtu; | ||
2683 | netdev->ethtool_ops = &jme_ethtool_ops; | 2690 | netdev->ethtool_ops = &jme_ethtool_ops; |
2684 | netdev->tx_timeout = jme_tx_timeout; | ||
2685 | netdev->watchdog_timeo = TX_TIMEOUT; | 2691 | netdev->watchdog_timeo = TX_TIMEOUT; |
2686 | netdev->vlan_rx_register = jme_vlan_rx_register; | ||
2687 | NETDEV_GET_STATS(netdev, &jme_get_stats); | ||
2688 | netdev->features = NETIF_F_HW_CSUM | | 2692 | netdev->features = NETIF_F_HW_CSUM | |
2689 | NETIF_F_SG | | 2693 | NETIF_F_SG | |
2690 | NETIF_F_TSO | | 2694 | NETIF_F_TSO | |