netdev: drivers should make ethtool_ops const
[linux-2.6-block.git] / drivers / net / virtio_net.c
index 51e9ce4907f088d1eed6f98db56bc2a9e00013cf..32266fb89c2022204c4b7fd396b4139c53f69f0d 100644 (file)
@@ -798,7 +798,7 @@ static void virtnet_vlan_rx_kill_vid(struct net_device *dev, u16 vid)
                dev_warn(&dev->dev, "Failed to kill VLAN ID %d.\n", vid);
 }
 
-static struct ethtool_ops virtnet_ethtool_ops = {
+static const struct ethtool_ops virtnet_ethtool_ops = {
        .set_tx_csum = virtnet_set_tx_csum,
        .set_sg = ethtool_op_set_sg,
        .set_tso = ethtool_op_set_tso,