kernel: mtdsplit: modify rootfs helpers to provide partition type
[openwrt.git] / target / linux / generic / files / drivers / mtd / mtdsplit / mtdsplit_brnimage.c
index 7ddd69b..c088772 100644 (file)
@@ -38,7 +38,7 @@ static int mtdsplit_parse_brnimage(struct mtd_info *master,
 
        for (rootfs_offset = 0; rootfs_offset < master->size;
             rootfs_offset += BRNIMAGE_ALIGN_BYTES) {
-               ret = mtd_check_rootfs_magic(master, rootfs_offset);
+               ret = mtd_check_rootfs_magic(master, rootfs_offset, NULL);
                if (!ret)
                        break;
        }