Commit 953b3bd1 authored by Dmitry Eremin-Solenikov's avatar Dmitry Eremin-Solenikov Committed by Artem Bityutskiy

mtd: remove put_partition_parser() from public header

There is no need to pollute public header with a definition private
to mtdpart.c. Move it from mtd/partitions.h to mtdpart.c
Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 3165f44b
...@@ -706,6 +706,8 @@ static struct mtd_part_parser *get_partition_parser(const char *name) ...@@ -706,6 +706,8 @@ static struct mtd_part_parser *get_partition_parser(const char *name)
return ret; return ret;
} }
#define put_partition_parser(p) do { module_put((p)->owner); } while (0)
int register_mtd_parser(struct mtd_part_parser *p) int register_mtd_parser(struct mtd_part_parser *p)
{ {
spin_lock(&part_parser_lock); spin_lock(&part_parser_lock);
......
...@@ -79,8 +79,6 @@ struct mtd_part_parser { ...@@ -79,8 +79,6 @@ struct mtd_part_parser {
extern int register_mtd_parser(struct mtd_part_parser *parser); extern int register_mtd_parser(struct mtd_part_parser *parser);
extern int deregister_mtd_parser(struct mtd_part_parser *parser); extern int deregister_mtd_parser(struct mtd_part_parser *parser);
#define put_partition_parser(p) do { module_put((p)->owner); } while(0)
int mtd_is_partition(struct mtd_info *mtd); int mtd_is_partition(struct mtd_info *mtd);
int mtd_add_partition(struct mtd_info *master, char *name, int mtd_add_partition(struct mtd_info *master, char *name,
long long offset, long long length); long long offset, long long length);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment