Commit bd601cc4 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

xgmac: cleanups

Make local function static, make ethtool_ops const.
Compile tested only.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b07be4b
...@@ -1440,7 +1440,7 @@ static void xgmac_poll_controller(struct net_device *dev) ...@@ -1440,7 +1440,7 @@ static void xgmac_poll_controller(struct net_device *dev)
} }
#endif #endif
struct rtnl_link_stats64 * static struct rtnl_link_stats64 *
xgmac_get_stats64(struct net_device *dev, xgmac_get_stats64(struct net_device *dev,
struct rtnl_link_stats64 *storage) struct rtnl_link_stats64 *storage)
{ {
...@@ -1675,7 +1675,7 @@ static int xgmac_set_wol(struct net_device *dev, ...@@ -1675,7 +1675,7 @@ static int xgmac_set_wol(struct net_device *dev,
return 0; return 0;
} }
static struct ethtool_ops xgmac_ethtool_ops = { static const struct ethtool_ops xgmac_ethtool_ops = {
.get_settings = xgmac_ethtool_getsettings, .get_settings = xgmac_ethtool_getsettings,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_pauseparam = xgmac_get_pauseparam, .get_pauseparam = xgmac_get_pauseparam,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment