aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/psb6970.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/psb6970.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/psb6970.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/psb6970.c b/target/linux/generic/files/drivers/net/phy/psb6970.c
index 97fb62ace2..6cee75734b 100644
--- a/target/linux/generic/files/drivers/net/phy/psb6970.c
+++ b/target/linux/generic/files/drivers/net/phy/psb6970.c
@@ -326,13 +326,9 @@ static int psb6970_config_init(struct phy_device *pdev)
return 0;
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
linkmode_zero(pdev->supported);
linkmode_set_bit(ETHTOOL_LINK_MODE_100baseT_Full_BIT, pdev->supported);
linkmode_copy(pdev->advertising, pdev->supported);
-#else
- pdev->supported = pdev->advertising = SUPPORTED_100baseT_Full;
-#endif
mutex_init(&priv->reg_mutex);
priv->read = psb6970_mii_read;