Skip to content

Commit

Permalink
mtd: remove put_partition_parser() from public header
Browse files Browse the repository at this point in the history
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: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 3165f44 commit 953b3bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drivers/mtd/mtdpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ static struct mtd_part_parser *get_partition_parser(const char *name)
return ret;
}

#define put_partition_parser(p) do { module_put((p)->owner); } while (0)

int register_mtd_parser(struct mtd_part_parser *p)
{
spin_lock(&part_parser_lock);
Expand Down
2 changes: 0 additions & 2 deletions include/linux/mtd/partitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ struct mtd_part_parser {
extern int register_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_add_partition(struct mtd_info *master, char *name,
long long offset, long long length);
Expand Down

0 comments on commit 953b3bd

Please sign in to comment.