ar71xx: drop mdio-gpio.h include from mach-om5pacv2.c
authorGabor Juhos <juhosg@freemail.hu>
Tue, 9 Jan 2018 13:59:14 +0000 (14:59 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 17 Jan 2018 10:07:17 +0000 (11:07 +0100)
The setup code of the OpenMesh OM5P ACv2 device uses nothing
from the mdio-gpio.h header, so remove the inclusion of that.

Also remove the kernel version check which is needed only
because the mdio-gpio.h header exists in a different path
in older kernels.

Compile tested only.

Cc: Sven Eckelmann <sven.eckelmann@openmesh.com>
Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
target/linux/ar71xx/files/arch/mips/ath79/mach-om5pacv2.c

index 0480d01e2c16af755b61750fe275984ca0b69b73..1ab24f93392aa320182ed9645200a2cace958ed0 100644 (file)
  */
 
 #include <linux/gpio.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/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/platform_device.h>