Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135421
b: refs/heads/master
c: 48f26ad
h: refs/heads/master
i:
  135419: 5c15419
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 2d5c16f commit 4630542
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a8eba3bf4643fa4f0f62af29c47728d5296ed15
refs/heads/master: 48f26ad5c097d751caef070ba057448d8a9c9a8d
14 changes: 9 additions & 5 deletions trunk/drivers/net/wan/x25_asy.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,14 @@ static int x25_asy_open_dev(struct net_device *dev)
return 0;
}

static const struct net_device_ops x25_asy_netdev_ops = {
.ndo_open = x25_asy_open_dev,
.ndo_stop = x25_asy_close,
.ndo_start_xmit = x25_asy_xmit,
.ndo_tx_timeout = x25_asy_timeout,
.ndo_change_mtu = x25_asy_change_mtu,
};

/* Initialise the X.25 driver. Called by the device init code */
static void x25_asy_setup(struct net_device *dev)
{
Expand All @@ -727,12 +735,8 @@ static void x25_asy_setup(struct net_device *dev)
*/

dev->mtu = SL_MTU;
dev->hard_start_xmit = x25_asy_xmit;
dev->tx_timeout = x25_asy_timeout;
dev->netdev_ops = &x25_asy_netdev_ops;
dev->watchdog_timeo = HZ*20;
dev->open = x25_asy_open_dev;
dev->stop = x25_asy_close;
dev->change_mtu = x25_asy_change_mtu;
dev->hard_header_len = 0;
dev->addr_len = 0;
dev->type = ARPHRD_X25;
Expand Down

0 comments on commit 4630542

Please sign in to comment.