Skip to content

Commit

Permalink
mtd: hide parse_mtd_partitions
Browse files Browse the repository at this point in the history
There is no need to export parse_mtd_partitions() now , as it's fully handled
by registration functions. So move the definition to private header and
remove respective EXPORT_SYMBOL_GPL.

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 050f012 commit 3165f44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions drivers/mtd/mtdcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ extern int del_mtd_device(struct mtd_info *mtd);
extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *,
int);
extern int del_mtd_partitions(struct mtd_info *);
extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
struct mtd_partition **pparts,
struct mtd_part_parser_data *data);

#define mtd_for_each_device(mtd) \
for ((mtd) = __mtd_next_device(0); \
Expand Down
1 change: 0 additions & 1 deletion drivers/mtd/mtdpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,6 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types,
}
return ret;
}
EXPORT_SYMBOL_GPL(parse_mtd_partitions);

int mtd_is_partition(struct mtd_info *mtd)
{
Expand Down
3 changes: 0 additions & 3 deletions include/linux/mtd/partitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,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);
extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
struct mtd_partition **pparts,
struct mtd_part_parser_data *data);

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

Expand Down

0 comments on commit 3165f44

Please sign in to comment.