aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-06-28 21:52:41 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-07-07 17:37:26 +0200
commit8ef6240fa61e65eb7b4386e3ea683b04e1dbf00f (patch)
tree7170a33c698c0eb1235e370d71b36ade2a4b0b46 /target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
parent7c640c2960dbc0a14784a50bc88c92a4b29c0446 (diff)
downloadupstream-8ef6240fa61e65eb7b4386e3ea683b04e1dbf00f.tar.gz
upstream-8ef6240fa61e65eb7b4386e3ea683b04e1dbf00f.tar.bz2
upstream-8ef6240fa61e65eb7b4386e3ea683b04e1dbf00f.zip
kernel: Add missing includes mtdsplit_*.c
This fixes the following compile problem with kernel 4.9 on lantiq: drivers/mtd/mtdsplit/mtdsplit_uimage.c:244:34: error: array type has incomplete element type 'struct of_device_id' static const struct of_device_id mtdsplit_uimage_of_match_table[] = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mtd/mtdsplit/mtdsplit_uimage.c:245:4: error: field name not in record or union initializer { .compatible = "denx,uimage" }, Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
index 4f6c4672ef..b853ec9e52 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
@@ -17,6 +17,7 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/byteorder/generic.h>
+#include <linux/of.h>
#include "mtdsplit.h"