aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-07-30 12:06:20 +0200
committerRafał Miłecki <rafal@milecki.pl>2018-07-30 12:07:06 +0200
commita3d2448fae5499356a31d71585a812ac65e7a39a (patch)
tree85c285025b4669478801afc22956ec0119ebd646 /target/linux/generic
parent23197e4580e933b2f81bfd06be051d6038bf24a9 (diff)
downloadupstream-a3d2448fae5499356a31d71585a812ac65e7a39a.tar.gz
upstream-a3d2448fae5499356a31d71585a812ac65e7a39a.tar.bz2
upstream-a3d2448fae5499356a31d71585a812ac65e7a39a.zip
kernel: add missing include to redboot.c
This fixes: drivers/mtd/redboot.c:299:34: error: array type has incomplete element type 'struct of_device_id' Fixes: 5e8b4be53177 ("kernel: add DT binding support to the mtd redboot parser") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/pending-4.9/419-mtd-redboot-add-of_match_table-with-DT-binding.patch10
-rw-r--r--target/linux/generic/pending-4.9/420-mtd-redboot_space.patch2
2 files changed, 10 insertions, 2 deletions
diff --git a/target/linux/generic/pending-4.9/419-mtd-redboot-add-of_match_table-with-DT-binding.patch b/target/linux/generic/pending-4.9/419-mtd-redboot-add-of_match_table-with-DT-binding.patch
index b47a621055..6ca9db8f09 100644
--- a/target/linux/generic/pending-4.9/419-mtd-redboot-add-of_match_table-with-DT-binding.patch
+++ b/target/linux/generic/pending-4.9/419-mtd-redboot-add-of_match_table-with-DT-binding.patch
@@ -12,7 +12,15 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
-@@ -289,9 +289,16 @@ static int parse_redboot_partitions(stru
+@@ -29,6 +29,7 @@
+ #include <linux/mtd/mtd.h>
+ #include <linux/mtd/partitions.h>
+ #include <linux/module.h>
++#include <linux/mod_devicetable.h>
+
+ struct fis_image_desc {
+ unsigned char name[16]; // Null terminated name
+@@ -289,9 +290,16 @@ static int parse_redboot_partitions(stru
return ret;
}
diff --git a/target/linux/generic/pending-4.9/420-mtd-redboot_space.patch b/target/linux/generic/pending-4.9/420-mtd-redboot_space.patch
index 85fbe0512d..6a612a0e75 100644
--- a/target/linux/generic/pending-4.9/420-mtd-redboot_space.patch
+++ b/target/linux/generic/pending-4.9/420-mtd-redboot_space.patch
@@ -11,7 +11,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
-@@ -265,14 +265,21 @@ static int parse_redboot_partitions(stru
+@@ -266,14 +266,21 @@ static int parse_redboot_partitions(stru
#endif
names += strlen(names)+1;