kernel: update mtdsplit for linux 4.9
[openwrt/staging/dedeckeh.git] / target / linux / generic / files / drivers / mtd / mtdsplit / mtdsplit_tplink.c
index d0cb381363da611c12a7481653b72631b2df3744..3a50250715bdec72918680cb87ea23592e1c8cdc 100644 (file)
@@ -83,8 +83,8 @@ struct tplink_fw_header {
 };
 
 static int mtdsplit_parse_tplink(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 tplink_fw_header hdr;
        size_t hdr_len, retlen, kernel_size;