mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mtd: partitions: Add OF support to AFS partitions
This adds device tree support for AFS partitioning. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
This commit is contained in:
parent
2485fa5323
commit
22749bf549
1 changed files with 7 additions and 0 deletions
|
|
@ -255,9 +255,16 @@ static int parse_afs_partitions(struct mtd_info *mtd,
|
|||
return idx ? idx : ret;
|
||||
}
|
||||
|
||||
static const struct of_device_id mtd_parser_afs_of_match_table[] = {
|
||||
{ .compatible = "arm,arm-firmware-suite" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, mtd_parser_afs_of_match_table);
|
||||
|
||||
static struct mtd_part_parser afs_parser = {
|
||||
.parse_fn = parse_afs_partitions,
|
||||
.name = "afs",
|
||||
.of_match_table = mtd_parser_afs_of_match_table,
|
||||
};
|
||||
module_mtd_part_parser(afs_parser);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue