Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dmitry Eremin-Solenikov and committed by
Artem Bityutskiy
3165f44b 050f0125

+3 -4
+3
drivers/mtd/mtdcore.h
··· 15 15 extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, 16 16 int); 17 17 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); 18 21 19 22 #define mtd_for_each_device(mtd) \ 20 23 for ((mtd) = __mtd_next_device(0); \
-1
drivers/mtd/mtdpart.c
··· 778 778 } 779 779 return ret; 780 780 } 781 - EXPORT_SYMBOL_GPL(parse_mtd_partitions); 782 781 783 782 int mtd_is_partition(struct mtd_info *mtd) 784 783 {
-3
include/linux/mtd/partitions.h
··· 78 78 79 79 extern int register_mtd_parser(struct mtd_part_parser *parser); 80 80 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); 84 81 85 82 #define put_partition_parser(p) do { module_put((p)->owner); } while(0) 86 83