aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath25
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2023-05-14 11:43:57 +0200
committerChristian Lamparter <chunkeey@gmail.com>2023-05-20 15:19:14 +0200
commit7365e6b00a7ab823467b7d92d4f3f0bdbe271f35 (patch)
treef3a7cc668c0e4b4a9c3c46a7aac21117a7ed2fc5 /target/linux/ath25
parent5e91b4507c0010970482099464b44a5404835caa (diff)
downloadupstream-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.tar.gz
upstream-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.tar.bz2
upstream-7365e6b00a7ab823467b7d92d4f3f0bdbe271f35.zip
kernel: remove obsolete kernel version switches
This removes unneeded kernel version switches from the targets after kernel 5.10 has been dropped. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Diffstat (limited to 'target/linux/ath25')
-rw-r--r--target/linux/ath25/files/drivers/net/phy/mvswitch.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/ath25/files/drivers/net/phy/mvswitch.c b/target/linux/ath25/files/drivers/net/phy/mvswitch.c
index e3550d55ba..29f2f9f0e8 100644
--- a/target/linux/ath25/files/drivers/net/phy/mvswitch.c
+++ b/target/linux/ath25/files/drivers/net/phy/mvswitch.c
@@ -312,11 +312,7 @@ mvswitch_config_init(struct phy_device *pdev)
priv->orig_features = dev->features;
#ifdef HEADER_MODE
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
dev->extra_priv_flags |= IFF_NO_IP_ALIGN;
-#else
- dev->priv_flags |= IFF_NO_IP_ALIGN;
-#endif
dev->features |= NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_TX;
#else
dev->features |= NETIF_F_HW_VLAN_CTAG_RX;
@@ -376,11 +372,7 @@ mvswitch_detach(struct phy_device *pdev)
dev->eth_mangle_rx = NULL;
dev->eth_mangle_tx = NULL;
dev->features = priv->orig_features;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
dev->extra_priv_flags &= ~IFF_NO_IP_ALIGN;
-#else
- dev->priv_flags &= ~IFF_NO_IP_ALIGN;
-#endif
}
static void