diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-11-12 06:13:30 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-20 05:46:29 +0300 |
commit | b8f70badb8cd7c928f7e076b6143aeb66fe13c8b (patch) | |
tree | 09a34598646ee8dd8c988983e6e1917487bc0665 /drivers/mtd/ar7part.c | |
parent | b9eab01125bf3cb6f5fbab1811402d16c9fcf4ec (diff) | |
download | linux-b8f70badb8cd7c928f7e076b6143aeb66fe13c8b.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/ar7part.c')
-rw-r--r-- | drivers/mtd/ar7part.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/mtd/ar7part.c b/drivers/mtd/ar7part.c index 7c9172ad2621..9203b96fd789 100644 --- a/drivers/mtd/ar7part.c +++ b/drivers/mtd/ar7part.c @@ -132,24 +132,10 @@ static int create_mtd_partitions(struct mtd_info *master, } static struct mtd_part_parser ar7_parser = { - .owner = THIS_MODULE, .parse_fn = create_mtd_partitions, .name = "ar7part", }; - -static int __init ar7_parser_init(void) -{ - register_mtd_parser(&ar7_parser); - return 0; -} - -static void __exit ar7_parser_exit(void) -{ - deregister_mtd_parser(&ar7_parser); -} - -module_init(ar7_parser_init); -module_exit(ar7_parser_exit); +module_mtd_part_parser(ar7_parser); MODULE_LICENSE("GPL"); MODULE_AUTHOR( "Felix Fietkau <nbd@openwrt.org>, " |