2
0
forked from Ivasoft/openwrt

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>
This commit is contained in:
Aleksander Jan Bajkowski
2023-05-14 11:43:57 +02:00
committed by Christian Lamparter
parent 5e91b4507c
commit 7365e6b00a
12 changed files with 0 additions and 154 deletions

View File

@@ -506,15 +506,9 @@ static int b53_configure_ports_of(struct b53_device *dev)
if (fixed_link) {
u32 spd;
u8 po = GMII_PO_LINK;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
phy_interface_t mode;
#else
int mode = of_get_phy_mode(pn);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
of_get_phy_mode(pn, &mode);
#endif
if (!of_property_read_u32(fixed_link, "speed", &spd)) {
switch (spd) {