openwrtv3/target/linux/ar71xx
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
..
base-files ar71xx: add support for TP-LINK CPE510 V2.0 2018-08-02 07:49:26 +02:00
files ar71xx: fix build error due to bad include 2018-08-22 13:11:59 +02:00
generic ar71xx:add support for E750G v8 2018-07-30 10:43:36 +02:00
image ath79: add support for Buffalo BHR-4GRV2 2018-08-09 18:44:57 +02:00
mikrotik ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
nand ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
patches-4.9 ar71xx: add v4.14 support 2018-08-22 08:09:00 +02:00
patches-4.14 ar71xx: add v4.14 support 2018-08-22 08:09:00 +02:00
tiny ar71xx: Move F9K1115v2 under ar71xx tiny target 2018-07-16 15:12:19 +02:00
config-4.9 ar71xx: add support for TP-Link Archer C59 v2 2018-07-30 14:04:45 +02:00
config-4.14 ar71xx: add v4.14 support 2018-08-22 08:09:00 +02:00
Makefile ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
modules.mk ar71xx: add LED driver NU801 2015-12-11 15:04:57 +00:00