aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/calxeda
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-01-04 13:01:16 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-05 13:23:00 -0500
commitbd601cc464e1ddc041d07ba2e4c015cdb9e392ec (patch)
tree7545977ae864c42bccabfa09b2372409edc3582b /drivers/net/ethernet/calxeda
parentnet: make ethtool_ops const (diff)
downloadlinux-dev-bd601cc464e1ddc041d07ba2e4c015cdb9e392ec.tar.xz
linux-dev-bd601cc464e1ddc041d07ba2e4c015cdb9e392ec.zip
xgmac: cleanups
Make local function static, make ethtool_ops const. Compile tested only. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/calxeda')
-rw-r--r--drivers/net/ethernet/calxeda/xgmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/calxeda/xgmac.c b/drivers/net/ethernet/calxeda/xgmac.c
index 107c1b010806..1fce186a9031 100644
--- a/drivers/net/ethernet/calxeda/xgmac.c
+++ b/drivers/net/ethernet/calxeda/xgmac.c
@@ -1440,7 +1440,7 @@ static void xgmac_poll_controller(struct net_device *dev)
}
#endif
-struct rtnl_link_stats64 *
+static struct rtnl_link_stats64 *
xgmac_get_stats64(struct net_device *dev,
struct rtnl_link_stats64 *storage)
{
@@ -1675,7 +1675,7 @@ static int xgmac_set_wol(struct net_device *dev,
return 0;
}
-static struct ethtool_ops xgmac_ethtool_ops = {
+static const struct ethtool_ops xgmac_ethtool_ops = {
.get_settings = xgmac_ethtool_getsettings,
.get_link = ethtool_op_get_link,
.get_pauseparam = xgmac_get_pauseparam,