diff mbox series

[LEDE-DEV,3/3] ar71xx: remove obsolete '< KERNEL_VERSION(4, 4, 0)' check

Message ID 20180109202014.16144-4-juhosg@freemail.hu
State Accepted
Headers show
Series ar71xx: remove obsolete kernel version checks | expand

Commit Message

Gabor Juhos Jan. 9, 2018, 8:20 p.m. UTC
Because the oldest supported kernel version on the ar71xx target is 4.4,
the condition that the kernel version is smaller than 4.4.0 is always
false. Remove the obsolete check from mach-rb4xx.c to clean up the code
a bit.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Jo-Philipp Wich Jan. 9, 2018, 8:31 p.m. UTC | #1
Merged into my staging tree with
http://git.openwrt.org/?p=openwrt/staging/jow.git;a=commitdiff;h=c3e1e32d1f.

Thank you!
diff mbox series

Patch

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c
index ae0a772d5b..722993ff9b 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c
@@ -11,12 +11,7 @@ 
 
 #include <linux/platform_device.h>
 #include <linux/irq.h>
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
-#include <linux/mdio-gpio.h>
-#else
 #include <linux/platform_data/mdio-gpio.h> 
-#endif
 #include <linux/mmc/host.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/flash.h>