aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2009-01-09 08:01:38 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:02:39 -0500
commit3f75f7482f7687b8ffe9e0ddad560797a9f9ad6e (patch)
tree0f0a29d0e2fc6eaaf0ff6a63cbeb4d9ae600ed79 /drivers/net/hamradio
parent3c94acb7ee343e49075c8f3c72c1920633fc230c (diff)
yam: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-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;