diff options
Diffstat (limited to 'drivers/net/wan/c101.c')
-rw-r--r-- | drivers/net/wan/c101.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wan/c101.c b/drivers/net/wan/c101.c index b46897996f7..9693b0fd323 100644 --- a/drivers/net/wan/c101.c +++ b/drivers/net/wan/c101.c | |||
@@ -296,7 +296,13 @@ static void c101_destroy_card(card_t *card) | |||
296 | kfree(card); | 296 | kfree(card); |
297 | } | 297 | } |
298 | 298 | ||
299 | 299 | static const struct net_device_ops c101_ops = { | |
300 | .ndo_open = c101_open, | ||
301 | .ndo_stop = c101_close, | ||
302 | .ndo_change_mtu = hdlc_change_mtu, | ||
303 | .ndo_start_xmit = hdlc_start_xmit, | ||
304 | .ndo_do_ioctl = c101_ioctl, | ||
305 | }; | ||
300 | 306 | ||
301 | static int __init c101_run(unsigned long irq, unsigned long winbase) | 307 | static int __init c101_run(unsigned long irq, unsigned long winbase) |
302 | { | 308 | { |
@@ -367,9 +373,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase) | |||
367 | dev->mem_start = winbase; | 373 | dev->mem_start = winbase; |
368 | dev->mem_end = winbase + C101_MAPPED_RAM_SIZE - 1; | 374 | dev->mem_end = winbase + C101_MAPPED_RAM_SIZE - 1; |
369 | dev->tx_queue_len = 50; | 375 | dev->tx_queue_len = 50; |
370 | dev->do_ioctl = c101_ioctl; | 376 | dev->netdev_ops = &c101_ops; |
371 | dev->open = c101_open; | ||
372 | dev->stop = c101_close; | ||
373 | hdlc->attach = sca_attach; | 377 | hdlc->attach = sca_attach; |
374 | hdlc->xmit = sca_xmit; | 378 | hdlc->xmit = sca_xmit; |
375 | card->settings.clock_type = CLOCK_EXT; | 379 | card->settings.clock_type = CLOCK_EXT; |