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: 5e8b4be531 ("kernel: add DT binding support to the mtd redboot parser")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Rafał Miłecki 2018-07-30 12:06:20 +02:00
parent 23197e4580
commit a3d2448fae
2 changed files with 10 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;