diff options
author | David Bauer <mail@david-bauer.net> | 2021-12-21 22:00:06 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2021-12-29 03:44:56 +0100 |
commit | 79a81d36ae60026624379a8d24ae3719ee2d149c (patch) | |
tree | 81f6095f26bb87765383749633a566bf7c027537 /target/linux/ath79/files/drivers/net | |
parent | 00b194871cd82dfbaf678626e49816ab3a51ece8 (diff) | |
download | upstream-79a81d36ae60026624379a8d24ae3719ee2d149c.tar.gz upstream-79a81d36ae60026624379a8d24ae3719ee2d149c.tar.bz2 upstream-79a81d36ae60026624379a8d24ae3719ee2d149c.zip |
ath79: remove pre-5.10 specific kernel code
With Kernel 5.4 support removed, we can get rid of this legacy code.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/files/drivers/net')
-rw-r--r-- | target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h | 4 | ||||
-rw-r--r-- | target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 9 |
2 files changed, 0 insertions, 13 deletions
diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h index 5ff9439f0d..1955cd288f 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h @@ -178,11 +178,7 @@ struct ag71xx { struct phy_device *phy_dev; void *phy_priv; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0) phy_interface_t phy_if_mode; -#else - int phy_if_mode; -#endif unsigned int link; unsigned int speed; diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index a38b336a8d..2fc18d5979 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -1198,11 +1198,7 @@ static void ag71xx_oom_timer_handler(struct timer_list *t) napi_schedule(&ag->napi); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) static void ag71xx_tx_timeout(struct net_device *dev, unsigned int txqueue) -#else -static void ag71xx_tx_timeout(struct net_device *dev) -#endif { struct ag71xx *ag = netdev_priv(dev); @@ -1679,13 +1675,8 @@ static int ag71xx_probe(struct platform_device *pdev) eth_random_addr(dev->dev_addr); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0) err = of_get_phy_mode(np, &ag->phy_if_mode); if (err < 0) { -#else - ag->phy_if_mode = of_get_phy_mode(np); - if (ag->phy_if_mode < 0) { -#endif dev_err(&pdev->dev, "missing phy-mode property in DT\n"); return ag->phy_if_mode; } |