aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r--drivers/net/hamradio/dmascc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c
index b0817ea56bb9..881bf818bb48 100644
--- a/drivers/net/hamradio/dmascc.c
+++ b/drivers/net/hamradio/dmascc.c
@@ -440,6 +440,13 @@ static void __init dev_setup(struct net_device *dev)
440 memcpy(dev->dev_addr, &ax25_defaddr, AX25_ADDR_LEN); 440 memcpy(dev->dev_addr, &ax25_defaddr, AX25_ADDR_LEN);
441} 441}
442 442
443static const struct net_device_ops scc_netdev_ops = {
444 .ndo_open = scc_open,
445 .ndo_stop = scc_close,
446 .ndo_start_xmit = scc_send_packet,
447 .ndo_do_ioctl = scc_ioctl,
448};
449
443static int __init setup_adapter(int card_base, int type, int n) 450static int __init setup_adapter(int card_base, int type, int n)
444{ 451{
445 int i, irq, chip; 452 int i, irq, chip;
@@ -575,11 +582,7 @@ static int __init setup_adapter(int card_base, int type, int n)
575 sprintf(dev->name, "dmascc%i", 2 * n + i); 582 sprintf(dev->name, "dmascc%i", 2 * n + i);
576 dev->base_addr = card_base; 583 dev->base_addr = card_base;
577 dev->irq = irq; 584 dev->irq = irq;
578 dev->open = scc_open; 585 dev->netdev_ops = &scc_netdev_ops;
579 dev->stop = scc_close;
580 dev->do_ioctl = scc_ioctl;
581 dev->hard_start_xmit = scc_send_packet;
582 dev->get_stats = scc_get_stats;
583 dev->header_ops = &ax25_header_ops; 586 dev->header_ops = &ax25_header_ops;
584 dev->set_mac_address = scc_set_mac_address; 587 dev->set_mac_address = scc_set_mac_address;
585 } 588 }