aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-09-02 04:03:33 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-02 04:03:33 -0400
commit0fc0b732eaa38beb93a6fb62f77c7bd9622c76ec (patch)
tree2423b134116c16f027ebeae7954c098f27d6e619 /drivers/net/virtio_net.c
parentdaf09de817353f18bb81a23a023d429cfd258e62 (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.c2
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
801static struct ethtool_ops virtnet_ethtool_ops = { 801static 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,