OpenWrt

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 2  →  ?path2? @ 3
/branches/18.06.1/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
@@ -12,7 +12,6 @@
*/
 
#include "ag71xx.h"
#include <linux/version.h>
 
static int ag71xx_ethtool_get_settings(struct net_device *dev,
struct ethtool_cmd *cmd)
@@ -23,11 +22,7 @@
if (!phydev)
return -ENODEV;
 
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
return phy_ethtool_gset(phydev, cmd);
#else
return phy_ethtool_ioctl(phydev, cmd);
#endif
}
 
static int ag71xx_ethtool_set_settings(struct net_device *dev,
@@ -39,11 +34,7 @@
if (!phydev)
return -ENODEV;
 
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
return phy_ethtool_sset(phydev, cmd);
#else
return phy_ethtool_ioctl(phydev, cmd);
#endif
}
 
static void ag71xx_ethtool_get_drvinfo(struct net_device *dev,