diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-04-15 14:52:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-16 11:20:24 +0200 |
commit | a33a2bb3c9f38c79e97f6ed720412d946e894e81 (patch) | |
tree | 3b40652eb574a9a48b98dcaba845ba932c1af3ff /drivers/net/rionet.c | |
parent | pci-skeleton: convert to net_device_ops (diff) | |
download | linux-a33a2bb3c9f38c79e97f6ed720412d946e894e81.tar.xz linux-a33a2bb3c9f38c79e97f6ed720412d946e894e81.zip |
rionet: convert to net_device_ops
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/rionet.c')
-rw-r--r-- | drivers/net/rionet.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index ec59e29807a6..8702e7acdee6 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c @@ -428,6 +428,15 @@ static const struct ethtool_ops rionet_ethtool_ops = { .get_link = ethtool_op_get_link, }; +static const struct net_device_ops rionet_netdev_ops = { + .ndo_open = rionet_open, + .ndo_stop = rionet_close, + .ndo_start_xmit = rionet_start_xmit, + .ndo_change_mtu = eth_change_mtu, + .ndo_validate_addr = eth_validate_addr, + .ndo_set_mac_address = eth_mac_addr, +}; + static int rionet_setup_netdev(struct rio_mport *mport) { int rc = 0; @@ -466,10 +475,7 @@ static int rionet_setup_netdev(struct rio_mport *mport) ndev->dev_addr[4] = device_id >> 8; ndev->dev_addr[5] = device_id & 0xff; - /* Fill in the driver function table */ - ndev->open = &rionet_open; - ndev->hard_start_xmit = &rionet_start_xmit; - ndev->stop = &rionet_close; + ndev->netdev_ops = &rionet_netdev_ops; ndev->mtu = RIO_MAX_MSG_SIZE - 14; ndev->features = NETIF_F_LLTX; SET_ETHTOOL_OPS(ndev, &rionet_ethtool_ops); |