Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135431
b: refs/heads/master
c: 1cc5920
h: refs/heads/master
i:
  135429: 89cb126
  135427: 4e96ec0
  135423: e6f456c
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 02fd33a commit 9f94807
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 1964e0dedf98e2fdf3bfd3ac8cf02d9e9aa803fb
refs/heads/master: 1cc5920f0f6077e36e259e149548ef9a94335382
24 changes: 12 additions & 12 deletions trunk/drivers/net/wireless/strip.c
Original file line number Diff line number Diff line change
Expand Up @@ -2477,6 +2477,16 @@ static const struct header_ops strip_header_ops = {
.rebuild = strip_rebuild_header,
};


static const struct net_device_ops strip_netdev_ops = {
.ndo_open = strip_open_low,
.ndo_stop = strip_close_low,
.ndo_start_xmit = strip_xmit,
.ndo_set_mac_address = strip_set_mac_address,
.ndo_get_stats = strip_get_stats,
.ndo_change_mtu = strip_change_mtu,
};

/*
* This routine is called by DDI when the
* (dynamically assigned) device is registered
Expand All @@ -2503,18 +2513,8 @@ static void strip_dev_setup(struct net_device *dev)
dev->dev_addr[0] = 0;
dev->addr_len = sizeof(MetricomAddress);

/*
* Pointers to interface service routines.
*/

dev->open = strip_open_low;
dev->stop = strip_close_low;
dev->hard_start_xmit = strip_xmit;
dev->header_ops = &strip_header_ops;

dev->set_mac_address = strip_set_mac_address;
dev->get_stats = strip_get_stats;
dev->change_mtu = strip_change_mtu;
dev->header_ops = &strip_header_ops,
dev->netdev_ops = &strip_netdev_ops;
}

/*
Expand Down

0 comments on commit 9f94807

Please sign in to comment.