Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135384
b: refs/heads/master
c: ddc2a92
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 450e72a commit 8f292ed
Show file tree
Hide file tree
Showing 2 changed files with 9 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: d36733afd9b65546e1fe0def5d50d8c4519ee452
refs/heads/master: ddc2a92d34ba20b47e1856375c68d25f51e86f53
13 changes: 8 additions & 5 deletions trunk/drivers/net/irda/mcs7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,13 @@ static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev)
return ret;
}

static const struct net_device_ops mcs_netdev_ops = {
.ndo_open = mcs_net_open,
.ndo_stop = mcs_net_close,
.ndo_start_xmit = mcs_hard_xmit,
.ndo_do_ioctl = mcs_net_ioctl,
};

/*
* This function is called by the USB subsystem for each new device in the
* system. Need to verify the device and if it is, then start handling it.
Expand Down Expand Up @@ -919,11 +926,7 @@ static int mcs_probe(struct usb_interface *intf,
/* Speed change work initialisation*/
INIT_WORK(&mcs->work, mcs_speed_work);

/* Override the network functions we need to use */
ndev->hard_start_xmit = mcs_hard_xmit;
ndev->open = mcs_net_open;
ndev->stop = mcs_net_close;
ndev->do_ioctl = mcs_net_ioctl;
ndev->netdev_ops = &mcs_netdev_ops;

if (!intf->cur_altsetting)
goto error2;
Expand Down

0 comments on commit 8f292ed

Please sign in to comment.