aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2009-01-09 08:01:02 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:02:00 -0500
commit004b3225c016efc90cbfe43cdf69c6331462bc56 (patch)
treefcb41472cfa1befc5c688a1cf38f3d067c03a06b /net/atm/lec.c
parent162619e59ab456aa689080726cb2ada24c1dfddd (diff)
lec: 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 'net/atm/lec.c')
-rw-r--r--net/atm/lec.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 63ff8b9a85ba..c0cba9a037e8 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -667,17 +667,19 @@ static void lec_set_multicast_list(struct net_device *dev)
667 return; 667 return;
668} 668}
669 669
670static const struct net_device_ops lec_netdev_ops = {
671 .ndo_open = lec_open,
672 .ndo_stop = lec_close,
673 .ndo_start_xmit = lec_start_xmit,
674 .ndo_change_mtu = lec_change_mtu,
675 .ndo_tx_timeout = lec_tx_timeout,
676 .ndo_set_multicast_list = lec_set_multicast_list,
677};
678
679
670static void lec_init(struct net_device *dev) 680static void lec_init(struct net_device *dev)
671{ 681{
672 dev->change_mtu = lec_change_mtu; 682 dev->netdev_ops = &lec_netdev_ops;
673 dev->open = lec_open;
674 dev->stop = lec_close;
675 dev->hard_start_xmit = lec_start_xmit;
676 dev->tx_timeout = lec_tx_timeout;
677
678 dev->get_stats = lec_get_stats;
679 dev->set_multicast_list = lec_set_multicast_list;
680 dev->do_ioctl = NULL;
681 printk("%s: Initialized!\n", dev->name); 683 printk("%s: Initialized!\n", dev->name);
682} 684}
683 685