diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-02 04:03:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-02 04:03:33 -0400 |
commit | 0fc0b732eaa38beb93a6fb62f77c7bd9622c76ec (patch) | |
tree | 2423b134116c16f027ebeae7954c098f27d6e619 /drivers/net/virtio_net.c | |
parent | daf09de817353f18bb81a23a023d429cfd258e62 (diff) |
netdev: drivers should make ethtool_ops const
No need to put ethtool_ops in data, they should be const.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 51e9ce4907f0..32266fb89c20 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -798,7 +798,7 @@ static void virtnet_vlan_rx_kill_vid(struct net_device *dev, u16 vid) | |||
798 | dev_warn(&dev->dev, "Failed to kill VLAN ID %d.\n", vid); | 798 | dev_warn(&dev->dev, "Failed to kill VLAN ID %d.\n", vid); |
799 | } | 799 | } |
800 | 800 | ||
801 | static struct ethtool_ops virtnet_ethtool_ops = { | 801 | static const struct ethtool_ops virtnet_ethtool_ops = { |
802 | .set_tx_csum = virtnet_set_tx_csum, | 802 | .set_tx_csum = virtnet_set_tx_csum, |
803 | .set_sg = ethtool_op_set_sg, | 803 | .set_sg = ethtool_op_set_sg, |
804 | .set_tso = ethtool_op_set_tso, | 804 | .set_tso = ethtool_op_set_tso, |