aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-07-08 08:01:54 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-08 23:57:46 -0400
commitc1d7c48ff769021fab0591cfe331c0061186cb31 (patch)
tree20badd6bc8b2bd0fe823c9bd5a93d1f77ab4c424
parentdb3421c114cfa6326861bc95e604785f4c64293b (diff)
net: fec: reorder ethtool ops to match order in struct declaration
This allows us to merge two separate preprocessor conditionals together. Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 79d578d6db8a..c6b1bf797a39 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -2014,21 +2014,19 @@ static int fec_enet_nway_reset(struct net_device *dev)
2014} 2014}
2015 2015
2016static const struct ethtool_ops fec_enet_ethtool_ops = { 2016static const struct ethtool_ops fec_enet_ethtool_ops = {
2017#if !defined(CONFIG_M5272)
2018 .get_pauseparam = fec_enet_get_pauseparam,
2019 .set_pauseparam = fec_enet_set_pauseparam,
2020#endif
2021 .get_settings = fec_enet_get_settings, 2017 .get_settings = fec_enet_get_settings,
2022 .set_settings = fec_enet_set_settings, 2018 .set_settings = fec_enet_set_settings,
2023 .get_drvinfo = fec_enet_get_drvinfo, 2019 .get_drvinfo = fec_enet_get_drvinfo,
2024 .get_link = ethtool_op_get_link,
2025 .get_ts_info = fec_enet_get_ts_info,
2026 .nway_reset = fec_enet_nway_reset, 2020 .nway_reset = fec_enet_nway_reset,
2021 .get_link = ethtool_op_get_link,
2027#ifndef CONFIG_M5272 2022#ifndef CONFIG_M5272
2028 .get_ethtool_stats = fec_enet_get_ethtool_stats, 2023 .get_pauseparam = fec_enet_get_pauseparam,
2024 .set_pauseparam = fec_enet_set_pauseparam,
2029 .get_strings = fec_enet_get_strings, 2025 .get_strings = fec_enet_get_strings,
2026 .get_ethtool_stats = fec_enet_get_ethtool_stats,
2030 .get_sset_count = fec_enet_get_sset_count, 2027 .get_sset_count = fec_enet_get_sset_count,
2031#endif 2028#endif
2029 .get_ts_info = fec_enet_get_ts_info,
2032}; 2030};
2033 2031
2034static int fec_enet_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) 2032static int fec_enet_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)