Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133823
b: refs/heads/master
c: 2d8b223
h: refs/heads/master
i:
  133821: 391f7d6
  133819: 024a797
  133815: 1fb1ad0
  133807: a6e7b75
  133791: f493a68
  133759: d58655d
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent 889f33a commit 5e4db9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 5a7616af604caf0d436a1ed0d4298bb25cd77d67
refs/heads/master: 2d8b223d81a385a746befc7facf93680f4185533
18 changes: 9 additions & 9 deletions trunk/drivers/net/hamradio/hdlcdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,14 @@ static int hdlcdrv_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)

/* --------------------------------------------------------------------- */

static const struct net_device_ops hdlcdrv_netdev = {
.ndo_open = hdlcdrv_open,
.ndo_stop = hdlcdrv_close,
.ndo_start_xmit = hdlcdrv_send_packet,
.ndo_do_ioctl = hdlcdrv_ioctl,
.ndo_set_mac_address = hdlcdrv_set_mac_address,
};

/*
* Initialize fields in hdlcdrv
*/
Expand Down Expand Up @@ -656,21 +664,13 @@ static void hdlcdrv_setup(struct net_device *dev)
s->bitbuf_hdlc.shreg = 0x80;
#endif /* HDLCDRV_DEBUG */

/*
* initialize the device struct
*/
dev->open = hdlcdrv_open;
dev->stop = hdlcdrv_close;
dev->do_ioctl = hdlcdrv_ioctl;
dev->hard_start_xmit = hdlcdrv_send_packet;
dev->get_stats = hdlcdrv_get_stats;

/* Fill in the fields of the device structure */

s->skb = NULL;

dev->netdev_ops = &hdlcdrv_netdev;
dev->header_ops = &ax25_header_ops;
dev->set_mac_address = hdlcdrv_set_mac_address;

dev->type = ARPHRD_AX25; /* AF_AX25 device */
dev->hard_header_len = AX25_MAX_HEADER_LEN + AX25_BPQ_HEADER_LEN;
Expand Down

0 comments on commit 5e4db9f

Please sign in to comment.