kernel: update mtdsplit for linux 4.9
[openwrt/staging/dedeckeh.git] / target / linux / generic / files / drivers / mtd / mtdsplit / mtdsplit_wrgg.c
index c1fbccbd25d2299a4d3cdcc1a61b895d628bc94a..c0e897777df957503322fefcbecc429a10b3c425 100644 (file)
@@ -40,8 +40,8 @@ struct wrgg03_header {
 
 
 static int mtdsplit_parse_wrgg(struct mtd_info *master,
-                               struct mtd_partition **pparts,
-                               struct mtd_part_parser_data *data)
+                              const struct mtd_partition **pparts,
+                              struct mtd_part_parser_data *data)
 {
        struct wrgg03_header hdr;
        size_t hdr_len, retlen, kernel_ent_size;