igb: Tidy up wrapping for CONFIG_IGB_PTP.
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / intel / igb / igb_ethtool.c
index a2944412a55ec8e316afdff9ee48b71eb2ae1730..0c4e29aa24c7e6aa65f43537537e58e846a9be4e 100644 (file)
@@ -2338,8 +2338,8 @@ static int igb_ethtool_get_ts_info(struct net_device *dev,
 
        return 0;
 }
+#endif /* CONFIG_IGB_PTP */
 
-#endif
 static const struct ethtool_ops igb_ethtool_ops = {
        .get_settings           = igb_get_settings,
        .set_settings           = igb_set_settings,
@@ -2370,7 +2370,7 @@ static const struct ethtool_ops igb_ethtool_ops = {
        .complete               = igb_ethtool_complete,
 #ifdef CONFIG_IGB_PTP
        .get_ts_info            = igb_ethtool_get_ts_info,
-#endif
+#endif /* CONFIG_IGB_PTP */
 };
 
 void igb_set_ethtool_ops(struct net_device *netdev)