diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-04-15 08:52:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-16 05:20:25 -0400 |
commit | 8c2c6be186097aafd8f8a17927203b457545cc69 (patch) | |
tree | 71d29dd3f697c1ca369face09f07e7d42c2209c4 /drivers/net/sgiseeq.c | |
parent | b4cf3421afce25655233cf66f6ec545baa8cb6ae (diff) |
sgiseeq: convert to net_device_ops
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sgiseeq.c')
-rw-r--r-- | drivers/net/sgiseeq.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c index 97d68560067d..5fb88ca6dd7f 100644 --- a/drivers/net/sgiseeq.c +++ b/drivers/net/sgiseeq.c | |||
@@ -709,6 +709,17 @@ static inline void setup_rx_ring(struct net_device *dev, | |||
709 | dma_sync_desc_dev(dev, &buf[i]); | 709 | dma_sync_desc_dev(dev, &buf[i]); |
710 | } | 710 | } |
711 | 711 | ||
712 | static const struct net_device_ops sgiseeq_netdev_ops = { | ||
713 | .ndo_open = sgiseeq_open, | ||
714 | .ndo_stop = sgiseeq_close, | ||
715 | .ndo_start_xmit = sgiseeq_start_xmit, | ||
716 | .ndo_tx_timeout = timeout, | ||
717 | .ndo_set_multicast_list = sgiseeq_set_multicast, | ||
718 | .ndo_set_mac_address = sgiseeq_set_mac_address, | ||
719 | .ndo_change_mtu = eth_change_mtu, | ||
720 | .ndo_validate_addr = eth_validate_addr, | ||
721 | }; | ||
722 | |||
712 | static int __init sgiseeq_probe(struct platform_device *pdev) | 723 | static int __init sgiseeq_probe(struct platform_device *pdev) |
713 | { | 724 | { |
714 | struct sgiseeq_platform_data *pd = pdev->dev.platform_data; | 725 | struct sgiseeq_platform_data *pd = pdev->dev.platform_data; |
@@ -775,13 +786,8 @@ static int __init sgiseeq_probe(struct platform_device *pdev) | |||
775 | SEEQ_CTRL_SFLAG | SEEQ_CTRL_ESHORT | | 786 | SEEQ_CTRL_SFLAG | SEEQ_CTRL_ESHORT | |
776 | SEEQ_CTRL_ENCARR; | 787 | SEEQ_CTRL_ENCARR; |
777 | 788 | ||
778 | dev->open = sgiseeq_open; | 789 | dev->netdev_ops = &sgiseeq_netdev_ops; |
779 | dev->stop = sgiseeq_close; | ||
780 | dev->hard_start_xmit = sgiseeq_start_xmit; | ||
781 | dev->tx_timeout = timeout; | ||
782 | dev->watchdog_timeo = (200 * HZ) / 1000; | 790 | dev->watchdog_timeo = (200 * HZ) / 1000; |
783 | dev->set_multicast_list = sgiseeq_set_multicast; | ||
784 | dev->set_mac_address = sgiseeq_set_mac_address; | ||
785 | dev->irq = irq; | 791 | dev->irq = irq; |
786 | 792 | ||
787 | if (register_netdev(dev)) { | 793 | if (register_netdev(dev)) { |