Skip to content

Commit 3165f44

Browse files
lumagdedekind
authored andcommitted
mtd: hide parse_mtd_partitions
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>
1 parent 050f012 commit 3165f44

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/mtd/mtdcore.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ extern int del_mtd_device(struct mtd_info *mtd);
1515
extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *,
1616
int);
1717
extern int del_mtd_partitions(struct mtd_info *);
18+
extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
19+
struct mtd_partition **pparts,
20+
struct mtd_part_parser_data *data);
1821

1922
#define mtd_for_each_device(mtd) \
2023
for ((mtd) = __mtd_next_device(0); \

‎drivers/mtd/mtdpart.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types,
778778
}
779779
return ret;
780780
}
781-
EXPORT_SYMBOL_GPL(parse_mtd_partitions);
782781

783782
int mtd_is_partition(struct mtd_info *mtd)
784783
{

‎include/linux/mtd/partitions.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ struct mtd_part_parser {
7878

7979
extern int register_mtd_parser(struct mtd_part_parser *parser);
8080
extern int deregister_mtd_parser(struct mtd_part_parser *parser);
81-
extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
82-
struct mtd_partition **pparts,
83-
struct mtd_part_parser_data *data);
8481

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

0 commit comments

Comments
 (0)