Skip to content

Commit

Permalink
xgmac: cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jan 5, 2012
1 parent 9b07be4 commit bd601cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/calxeda/xgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bd601cc

Please sign in to comment.