@@ -33,7 +33,7 @@ struct part_data {
};
static int myloader_parse_partitions(struct mtd_info *master,
- struct mtd_partition **pparts,
+ const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
struct part_data *buf;
new file mode 100644
@@ -0,0 +1,11 @@
+--- a/drivers/mtd/myloader.c
++++ b/drivers/mtd/myloader.c
+@@ -33,7 +33,7 @@ struct part_data {
+ };
+
+ static int myloader_parse_partitions(struct mtd_info *master,
+- const struct mtd_partition **pparts,
++ struct mtd_partition **pparts,
+ struct mtd_part_parser_data *data)
+ {
+ struct part_data *buf;
new file mode 100644
@@ -0,0 +1,11 @@
+--- a/drivers/mtd/myloader.c
++++ b/drivers/mtd/myloader.c
+@@ -33,7 +33,7 @@ struct part_data {
+ };
+
+ static int myloader_parse_partitions(struct mtd_info *master,
+- const struct mtd_partition **pparts,
++ struct mtd_partition **pparts,
+ struct mtd_part_parser_data *data)
+ {
+ struct part_data *buf;
add backport patches for older kernels. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> --- target/linux/generic/files/drivers/mtd/myloader.c | 2 +- target/linux/generic/patches-3.18/003-myloader_backport.patch | 11 +++++++++++ target/linux/generic/patches-4.4/003-myloader_backport.patch | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 target/linux/generic/patches-3.18/003-myloader_backport.patch create mode 100644 target/linux/generic/patches-4.4/003-myloader_backport.patch