aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-06-23 07:23:08 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:13 -0400
commit3165f44bcd4b987cbcc694af739ab955b561e05b (patch)
tree104f319cf37a8397d8c6e20314cef276164cb271
parent050f01258319f2d2e66a131b7ddb6b5df5aa3af7 (diff)
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>
-rw-r--r--drivers/mtd/mtdcore.h3
-rw-r--r--drivers/mtd/mtdpart.c1
-rw-r--r--include/linux/mtd/partitions.h3
3 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mtd/mtdcore.h b/drivers/mtd/mtdcore.h
index 0ed6126b4c1f..961a38408542 100644
--- a/drivers/mtd/mtdcore.h
+++ b/drivers/mtd/mtdcore.h
@@ -15,6 +15,9 @@ extern int del_mtd_device(struct mtd_info *mtd);
15extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, 15extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *,
16 int); 16 int);
17extern int del_mtd_partitions(struct mtd_info *); 17extern int del_mtd_partitions(struct mtd_info *);
18extern 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#define mtd_for_each_device(mtd) \ 22#define mtd_for_each_device(mtd) \
20 for ((mtd) = __mtd_next_device(0); \ 23 for ((mtd) = __mtd_next_device(0); \
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 9e8ee054135a..6997c6cdc471 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -778,7 +778,6 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types,
778 } 778 }
779 return ret; 779 return ret;
780} 780}
781EXPORT_SYMBOL_GPL(parse_mtd_partitions);
782 781
783int mtd_is_partition(struct mtd_info *mtd) 782int mtd_is_partition(struct mtd_info *mtd)
784{ 783{
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h
index a8a961a8c8ff..c98d6b858c2c 100644
--- a/include/linux/mtd/partitions.h
+++ b/include/linux/mtd/partitions.h
@@ -78,9 +78,6 @@ struct mtd_part_parser {
78 78
79extern int register_mtd_parser(struct mtd_part_parser *parser); 79extern int register_mtd_parser(struct mtd_part_parser *parser);
80extern int deregister_mtd_parser(struct mtd_part_parser *parser); 80extern int deregister_mtd_parser(struct mtd_part_parser *parser);
81extern 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#define put_partition_parser(p) do { module_put((p)->owner); } while(0) 82#define put_partition_parser(p) do { module_put((p)->owner); } while(0)
86 83