summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@freemail.hu>2018-01-09 21:20:14 +0100
committerJo-Philipp Wich <jo@mein.io>2018-01-09 21:33:19 +0100
commit82cc4399765f0b9bd15cedae453d6f84c3f46393 (patch)
treec59850610a8bec26bc0f238ab8c6b21efd1be1d6
parent8f44c8086be7fd080f4ae2f6bbd5296482d99776 (diff)
downloadmtk-20170518-82cc4399765f0b9bd15cedae453d6f84c3f46393.zip
mtk-20170518-82cc4399765f0b9bd15cedae453d6f84c3f46393.tar.gz
mtk-20170518-82cc4399765f0b9bd15cedae453d6f84c3f46393.tar.bz2
ar71xx: remove obsolete '< KERNEL_VERSION(4, 4, 0)' check
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>
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c5
1 files changed, 0 insertions, 5 deletions
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 ae0a772..722993f 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>