aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.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/xen-netfront.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/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 3700c49d76ca..baa051d5bfbe 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -51,7 +51,7 @@
51#include <xen/interface/memory.h> 51#include <xen/interface/memory.h>
52#include <xen/interface/grant_table.h> 52#include <xen/interface/grant_table.h>
53 53
54static struct ethtool_ops xennet_ethtool_ops; 54static const struct ethtool_ops xennet_ethtool_ops;
55 55
56struct netfront_cb { 56struct netfront_cb {
57 struct page *page; 57 struct page *page;
@@ -1627,7 +1627,7 @@ static void backend_changed(struct xenbus_device *dev,
1627 } 1627 }
1628} 1628}
1629 1629
1630static struct ethtool_ops xennet_ethtool_ops = 1630static const struct ethtool_ops xennet_ethtool_ops =
1631{ 1631{
1632 .set_tx_csum = ethtool_op_set_tx_csum, 1632 .set_tx_csum = ethtool_op_set_tx_csum,
1633 .set_sg = xennet_set_sg, 1633 .set_sg = xennet_set_sg,