diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 15:36:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-22 01:37:57 -0400 |
commit | 48f26ad5c097d751caef070ba057448d8a9c9a8d (patch) | |
tree | dabc4aaabde793f135afc0996d2e9b61bd0cfb54 /drivers/net/wan | |
parent | 6a8eba3bf4643fa4f0f62af29c47728d5296ed15 (diff) |
x25_asy: 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/wan')
-rw-r--r-- | drivers/net/wan/x25_asy.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c index d62844d7e934..d67e208ab375 100644 --- a/drivers/net/wan/x25_asy.c +++ b/drivers/net/wan/x25_asy.c | |||
@@ -712,6 +712,14 @@ static int x25_asy_open_dev(struct net_device *dev) | |||
712 | return 0; | 712 | return 0; |
713 | } | 713 | } |
714 | 714 | ||
715 | static const struct net_device_ops x25_asy_netdev_ops = { | ||
716 | .ndo_open = x25_asy_open_dev, | ||
717 | .ndo_stop = x25_asy_close, | ||
718 | .ndo_start_xmit = x25_asy_xmit, | ||
719 | .ndo_tx_timeout = x25_asy_timeout, | ||
720 | .ndo_change_mtu = x25_asy_change_mtu, | ||
721 | }; | ||
722 | |||
715 | /* Initialise the X.25 driver. Called by the device init code */ | 723 | /* Initialise the X.25 driver. Called by the device init code */ |
716 | static void x25_asy_setup(struct net_device *dev) | 724 | static void x25_asy_setup(struct net_device *dev) |
717 | { | 725 | { |
@@ -727,12 +735,8 @@ static void x25_asy_setup(struct net_device *dev) | |||
727 | */ | 735 | */ |
728 | 736 | ||
729 | dev->mtu = SL_MTU; | 737 | dev->mtu = SL_MTU; |
730 | dev->hard_start_xmit = x25_asy_xmit; | 738 | dev->netdev_ops = &x25_asy_netdev_ops; |
731 | dev->tx_timeout = x25_asy_timeout; | ||
732 | dev->watchdog_timeo = HZ*20; | 739 | dev->watchdog_timeo = HZ*20; |
733 | dev->open = x25_asy_open_dev; | ||
734 | dev->stop = x25_asy_close; | ||
735 | dev->change_mtu = x25_asy_change_mtu; | ||
736 | dev->hard_header_len = 0; | 740 | dev->hard_header_len = 0; |
737 | dev->addr_len = 0; | 741 | dev->addr_len = 0; |
738 | dev->type = ARPHRD_X25; | 742 | dev->type = ARPHRD_X25; |