mtd: kill off MTD partition parser boilerplate

Most parsers can be handled with our new boilerplate-reducing macro.
There are a few that can't be (cmdlineparts and ofpart).

Also kill off the owner assignments, since register_mtd_parser() now
takes care of that.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
Brian Norris
2015-11-11 19:13:30 -08:00
vanhempi b9eab01125
commit b8f70badb8
7 muutettua tiedostoa jossa 5 lisäystä ja 80 poistoa

Näytä tiedosto

@@ -131,7 +131,6 @@ ofpart_none:
}
static struct mtd_part_parser ofpart_parser = {
.owner = THIS_MODULE,
.parse_fn = parse_ofpart_partitions,
.name = "ofpart",
};
@@ -191,7 +190,6 @@ static int parse_ofoldpart_partitions(struct mtd_info *master,
}
static struct mtd_part_parser ofoldpart_parser = {
.owner = THIS_MODULE,
.parse_fn = parse_ofoldpart_partitions,
.name = "ofoldpart",
};