openwrt/target/linux/ar71xx/files/drivers
Koen Vandeputte 3b1ea0996f ar71xx: fix build error due to bad include
While "rawnand.h" is available in kernel 4.14,
the default for this target is kernel 4.9 in which "nand.h" should be used.

Add an extra check to include the correct file depending on kernel version

Fixes these build errors:

drivers/mtd/nand/ar934x_nfc.c:16:10: fatal error: linux/mtd/rawnand.h: No such file or directory
 #include <linux/mtd/rawnand.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Fixes: 318e19ba67 ("ar71xx: add v4.14 support")

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-08-22 13:11:59 +02:00
..
gpio ar71xx: remove obsolete '< KERNEL_VERSION(3, 15, 0)' checks 2018-01-09 21:33:18 +01:00
leds ar71xx: fix section mismatches 2017-10-11 22:36:04 +02:00
mtd ar71xx: fix build error due to bad include 2018-08-22 13:11:59 +02:00
net ar71xx: add missing include for checking kernel version 2018-08-22 13:11:52 +02:00
spi ar71xx: spi-rb4xx: balance clk_prepare_enable() call 2017-12-24 09:03:01 +01:00