mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
ieee1394: convert to net_device_ops
Convert to net_device_ops. Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Stefan Richter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d442ad4ab1
commit
79994c9906
1 changed files with 10 additions and 6 deletions
|
|
@ -516,16 +516,20 @@ static const struct header_ops ether1394_header_ops = {
|
|||
.parse = ether1394_header_parse,
|
||||
};
|
||||
|
||||
static const struct net_device_ops ether1394_netdev_ops = {
|
||||
.ndo_open = ether1394_open,
|
||||
.ndo_stop = ether1394_stop,
|
||||
.ndo_start_xmit = ether1394_tx,
|
||||
.ndo_get_stats = ether1394_stats,
|
||||
.ndo_tx_timeout = ether1394_tx_timeout,
|
||||
.ndo_change_mtu = ether1394_change_mtu,
|
||||
};
|
||||
|
||||
static void ether1394_init_dev(struct net_device *dev)
|
||||
{
|
||||
dev->open = ether1394_open;
|
||||
dev->stop = ether1394_stop;
|
||||
dev->hard_start_xmit = ether1394_tx;
|
||||
dev->get_stats = ether1394_stats;
|
||||
dev->tx_timeout = ether1394_tx_timeout;
|
||||
dev->change_mtu = ether1394_change_mtu;
|
||||
|
||||
dev->header_ops = ðer1394_header_ops;
|
||||
dev->netdev_ops = ðer1394_netdev_ops;
|
||||
|
||||
SET_ETHTOOL_OPS(dev, ðtool_ops);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue