aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-08-06 10:01:15 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-08-06 14:27:10 +0200
commitc4492dd70e939df00850ccd763d9ab4e6c5c2bcc (patch)
treeed0ab4c244c26b05f1b1c3101679611c3ec847b2 /target/linux
parent7270fdb62ff86f7b85c6dfbc0ea4ff0ba5ff9b9e (diff)
downloadupstream-c4492dd70e939df00850ccd763d9ab4e6c5c2bcc.tar.gz
upstream-c4492dd70e939df00850ccd763d9ab4e6c5c2bcc.tar.bz2
upstream-c4492dd70e939df00850ccd763d9ab4e6c5c2bcc.zip
kernel: drop Fon(Foxconn) parser matching for the "firmware" partition
This parser's matching function appears to be too generic as it matches e.g. Buffalo WZR-HP-G300NH. That results in incorrect parts parsing. Luckily this parser is needed by Fon FON2601 only which uses DT-based ramips target. It means we can depend on mtd subsystem matching of "fonfxc,uimage" string. That said triggering this parser based on the "firmware" (or whatever MTD_SPLIT_FIRMWARE_NAME is) partiiton name is not needed. It can be dropped which will automatically fix the Buffalo WZR-HP-G300NH case. Fixes: a1c6a316d299 ("ramips: add support for Fon FON2601") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
index 091403ae91..41347d0419 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
@@ -421,7 +421,6 @@ static struct mtd_part_parser uimage_fonfxc_parser = {
.of_match_table = mtdsplit_uimage_fonfxc_of_match_table,
#endif
.parse_fn = mtdsplit_uimage_parse_fonfxc,
- .type = MTD_PARSER_TYPE_FIRMWARE,
};
/**************************************************