Revert "kernel: generic: fix fonfxc uimage parser"
authorRafał Miłecki <rafal@milecki.pl>
Tue, 6 Aug 2019 04:35:23 +0000 (06:35 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 6 Aug 2019 04:41:52 +0000 (06:41 +0200)
commit4b755ce06abe6f7a58325e77e1711a755c1bcbcc
tree7f45b2a7b974f4255ddcd8611410ab3fee30c068
parent19cfbb1b34de5a6f7234c8615edaf3a497ba4d55
Revert "kernel: generic: fix fonfxc uimage parser"

This reverts commit e92a14709d37f64dcba8c81fa51e61e5f10f439a.

mtdsplit_uimage_parse_fonfxc() gets called in two situations:
1) It was /requested/ from DT using "fonfxc,uimage" compatible string
2) It was called by parsing code after finding "firmware"
   (MTD_SPLIT_FIRMWARE_NAME) due to the parser's type

Code added in the /fix/ commit basically just disabled the second case.
If that's the real goal it could be achieved by simply dropping type
MTD_PARSER_TYPE_FIRMWARE. It may however require another solution as
it's possible that some non-DT target actually needs fonfxc uImage
parsing.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c