diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-01-08 16:52:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:03:37 -0500 |
commit | 991990a12de42281f81b4e3a6471586d2d0caf6a (patch) | |
tree | 7b7ad34cf8218dab2ddd882a87b7c7a687b7d2ee /drivers/net/wan/wanxl.c | |
parent | dff3fde7be8f08c78914fca3d25e1cffe7625faa (diff) |
WAN: Convert generic HDLC drivers to netdev_ops.
Also remove unneeded last_rx update from Synclink drivers.
Synclink part mostly by Stephen Hemminger.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/wanxl.c')
-rw-r--r-- | drivers/net/wan/wanxl.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index 4bffb67ebcae..887acb0dc807 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c | |||
@@ -547,6 +547,15 @@ static void wanxl_pci_remove_one(struct pci_dev *pdev) | |||
547 | 547 | ||
548 | #include "wanxlfw.inc" | 548 | #include "wanxlfw.inc" |
549 | 549 | ||
550 | static const struct net_device_ops wanxl_ops = { | ||
551 | .ndo_open = wanxl_open, | ||
552 | .ndo_stop = wanxl_close, | ||
553 | .ndo_change_mtu = hdlc_change_mtu, | ||
554 | .ndo_start_xmit = hdlc_start_xmit, | ||
555 | .ndo_do_ioctl = wanxl_ioctl, | ||
556 | .ndo_get_stats = wanxl_get_stats, | ||
557 | }; | ||
558 | |||
550 | static int __devinit wanxl_pci_init_one(struct pci_dev *pdev, | 559 | static int __devinit wanxl_pci_init_one(struct pci_dev *pdev, |
551 | const struct pci_device_id *ent) | 560 | const struct pci_device_id *ent) |
552 | { | 561 | { |
@@ -777,12 +786,9 @@ static int __devinit wanxl_pci_init_one(struct pci_dev *pdev, | |||
777 | hdlc = dev_to_hdlc(dev); | 786 | hdlc = dev_to_hdlc(dev); |
778 | spin_lock_init(&port->lock); | 787 | spin_lock_init(&port->lock); |
779 | dev->tx_queue_len = 50; | 788 | dev->tx_queue_len = 50; |
780 | dev->do_ioctl = wanxl_ioctl; | 789 | dev->netdev_ops = &wanxl_ops; |
781 | dev->open = wanxl_open; | ||
782 | dev->stop = wanxl_close; | ||
783 | hdlc->attach = wanxl_attach; | 790 | hdlc->attach = wanxl_attach; |
784 | hdlc->xmit = wanxl_xmit; | 791 | hdlc->xmit = wanxl_xmit; |
785 | dev->get_stats = wanxl_get_stats; | ||
786 | port->card = card; | 792 | port->card = card; |
787 | port->node = i; | 793 | port->node = i; |
788 | get_status(port)->clocking = CLOCK_EXT; | 794 | get_status(port)->clocking = CLOCK_EXT; |