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/n2.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/n2.c')
-rw-r--r-- | drivers/net/wan/n2.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wan/n2.c b/drivers/net/wan/n2.c index 697715ae80f4..83da596e2052 100644 --- a/drivers/net/wan/n2.c +++ b/drivers/net/wan/n2.c | |||
@@ -324,7 +324,13 @@ static void n2_destroy_card(card_t *card) | |||
324 | kfree(card); | 324 | kfree(card); |
325 | } | 325 | } |
326 | 326 | ||
327 | 327 | static const struct net_device_ops n2_ops = { | |
328 | .ndo_open = n2_open, | ||
329 | .ndo_stop = n2_close, | ||
330 | .ndo_change_mtu = hdlc_change_mtu, | ||
331 | .ndo_start_xmit = hdlc_start_xmit, | ||
332 | .ndo_do_ioctl = n2_ioctl, | ||
333 | }; | ||
328 | 334 | ||
329 | static int __init n2_run(unsigned long io, unsigned long irq, | 335 | static int __init n2_run(unsigned long io, unsigned long irq, |
330 | unsigned long winbase, long valid0, long valid1) | 336 | unsigned long winbase, long valid0, long valid1) |
@@ -460,9 +466,7 @@ static int __init n2_run(unsigned long io, unsigned long irq, | |||
460 | dev->mem_start = winbase; | 466 | dev->mem_start = winbase; |
461 | dev->mem_end = winbase + USE_WINDOWSIZE - 1; | 467 | dev->mem_end = winbase + USE_WINDOWSIZE - 1; |
462 | dev->tx_queue_len = 50; | 468 | dev->tx_queue_len = 50; |
463 | dev->do_ioctl = n2_ioctl; | 469 | dev->netdev_ops = &n2_ops; |
464 | dev->open = n2_open; | ||
465 | dev->stop = n2_close; | ||
466 | hdlc->attach = sca_attach; | 470 | hdlc->attach = sca_attach; |
467 | hdlc->xmit = sca_xmit; | 471 | hdlc->xmit = sca_xmit; |
468 | port->settings.clock_type = CLOCK_EXT; | 472 | port->settings.clock_type = CLOCK_EXT; |