diff options
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; |