ath79: remove obsolete 5.15 kernel support

The 5.15 kenel config file, patches and version switches will be
removed in this patch. We will introduce kernel 6.6 support soon.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
Shiji Yang
2024-03-13 14:27:08 +08:00
committed by Nick Hainke
parent a437950770
commit 0efa91d6ea
39 changed files with 10 additions and 3984 deletions

View File

@@ -80,15 +80,11 @@ static void ag71xx_ethtool_set_msglevel(struct net_device *dev, u32 msg_level)
ag->msg_enable = msg_level;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
static void ag71xx_ethtool_get_ringparam(struct net_device *dev,
struct ethtool_ringparam *er,
struct kernel_ethtool_ringparam *kernel_ring,
struct netlink_ext_ack *extack)
#else
static void ag71xx_ethtool_get_ringparam(struct net_device *dev,
struct ethtool_ringparam *er)
#endif
static void
ag71xx_ethtool_get_ringparam(struct net_device *dev,
struct ethtool_ringparam *er,
struct kernel_ethtool_ringparam *kernel_ring,
struct netlink_ext_ack *extack)
{
struct ag71xx *ag = netdev_priv(dev);
@@ -106,15 +102,11 @@ static void ag71xx_ethtool_get_ringparam(struct net_device *dev,
er->tx_pending /= AG71XX_TX_RING_DS_PER_PKT;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
static int ag71xx_ethtool_set_ringparam(struct net_device *dev,
struct ethtool_ringparam *er,
struct kernel_ethtool_ringparam *kernel_ring,
struct netlink_ext_ack *extack)
#else
static int ag71xx_ethtool_set_ringparam(struct net_device *dev,
struct ethtool_ringparam *er)
#endif
static int
ag71xx_ethtool_set_ringparam(struct net_device *dev,
struct ethtool_ringparam *er,
struct kernel_ethtool_ringparam *kernel_ring,
struct netlink_ext_ack *extack)
{
struct ag71xx *ag = netdev_priv(dev);
unsigned tx_size;

View File

@@ -1698,11 +1698,7 @@ static int ag71xx_probe(struct platform_device *pdev)
break;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)
netif_napi_add_weight(dev, &ag->napi, ag71xx_poll, AG71XX_NAPI_WEIGHT);
#else
netif_napi_add(dev, &ag->napi, ag71xx_poll, AG71XX_NAPI_WEIGHT);
#endif
ag71xx_dump_regs(ag);