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:
@@ -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",
|
||||
};
|
||||
|
Viittaa uudesa ongelmassa
Block a user