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/xen-netfront.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/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 4 |
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 | ||
54 | static struct ethtool_ops xennet_ethtool_ops; | 54 | static const struct ethtool_ops xennet_ethtool_ops; |
55 | 55 | ||
56 | struct netfront_cb { | 56 | struct 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 | ||
1630 | static struct ethtool_ops xennet_ethtool_ops = | 1630 | static 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, |