diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-02-01 12:41:41 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-02-01 12:41:41 +0000 |
commit | e1491b341b212000bc26f68b55d9a060b9c48625 (patch) | |
tree | cb58aca4643c016200b5a1ab1d3b297e7f226f7f /target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c | |
parent | 704473864eac18db32ac5a6d96b8eb36c556351b (diff) | |
download | mtk-20170518-e1491b341b212000bc26f68b55d9a060b9c48625.zip mtk-20170518-e1491b341b212000bc26f68b55d9a060b9c48625.tar.gz mtk-20170518-e1491b341b212000bc26f68b55d9a060b9c48625.tar.bz2 |
kernel: mtdsplit: modify rootfs helpers to provide partition type
Our mtdsplit parsers may want to create partition with name choice based
on partition file system (e.g. SquashFS vs. JFFS2). This patch allows
passing extra argument pointing to variable that will be set properly.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48598
Diffstat (limited to 'target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c index 00c2d39..c65e60a 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c @@ -122,7 +122,7 @@ static int mtdsplit_parse_tplink(struct mtd_info *master, return -EINVAL; /* Find the rootfs after the kernel. */ - err = mtd_check_rootfs_magic(master, kernel_size); + err = mtd_check_rootfs_magic(master, kernel_size, NULL); if (!err) { rootfs_offset = kernel_size; } else { @@ -131,7 +131,7 @@ static int mtdsplit_parse_tplink(struct mtd_info *master, * Start the search from an arbitrary offset. */ err = mtd_find_rootfs_from(master, TPLINK_MIN_ROOTFS_OFFS, - master->size, &rootfs_offset); + master->size, &rootfs_offset, NULL); if (err) return err; } |