aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/yam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hamradio/yam.c')
-rw-r--r--drivers/net/hamradio/yam.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c
index be280871e9ac..e2b0a19203ac 100644
--- a/drivers/net/hamradio/yam.c
+++ b/drivers/net/hamradio/yam.c
@@ -1044,6 +1044,14 @@ static int yam_set_mac_address(struct net_device *dev, void *addr)
1044 1044
1045/* --------------------------------------------------------------------- */ 1045/* --------------------------------------------------------------------- */
1046 1046
1047static const struct net_device_ops yam_netdev_ops = {
1048 .ndo_open = yam_open,
1049 .ndo_stop = yam_close,
1050 .ndo_start_xmit = yam_send_packet,
1051 .ndo_do_ioctl = yam_ioctl,
1052 .ndo_set_mac_address = yam_set_mac_address,
1053};
1054
1047static void yam_setup(struct net_device *dev) 1055static void yam_setup(struct net_device *dev)
1048{ 1056{
1049 struct yam_port *yp = netdev_priv(dev); 1057 struct yam_port *yp = netdev_priv(dev);
@@ -1064,18 +1072,11 @@ static void yam_setup(struct net_device *dev)
1064 dev->base_addr = yp->iobase; 1072 dev->base_addr = yp->iobase;
1065 dev->irq = yp->irq; 1073 dev->irq = yp->irq;
1066 1074
1067 dev->open = yam_open;
1068 dev->stop = yam_close;
1069 dev->do_ioctl = yam_ioctl;
1070 dev->hard_start_xmit = yam_send_packet;
1071 dev->get_stats = yam_get_stats;
1072
1073 skb_queue_head_init(&yp->send_queue); 1075 skb_queue_head_init(&yp->send_queue);
1074 1076
1077 dev->netdev_ops = &yam_netdev_ops;
1075 dev->header_ops = &ax25_header_ops; 1078 dev->header_ops = &ax25_header_ops;
1076 1079
1077 dev->set_mac_address = yam_set_mac_address;
1078
1079 dev->type = ARPHRD_AX25; 1080 dev->type = ARPHRD_AX25;
1080 dev->hard_header_len = AX25_MAX_HEADER_LEN; 1081 dev->hard_header_len = AX25_MAX_HEADER_LEN;
1081 dev->mtu = AX25_MTU; 1082 dev->mtu = AX25_MTU;