diff options
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 0a4760174782..630be3e7da04 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/mtd/partitions.h> | 31 | #include <linux/mtd/partitions.h> |
32 | #include <linux/err.h> | 32 | #include <linux/err.h> |
33 | 33 | ||
34 | #include "mtdcore.h" | ||
35 | |||
34 | /* Our partition linked list */ | 36 | /* Our partition linked list */ |
35 | static LIST_HEAD(mtd_partitions); | 37 | static LIST_HEAD(mtd_partitions); |
36 | static DEFINE_MUTEX(mtd_partitions_mutex); | 38 | static DEFINE_MUTEX(mtd_partitions_mutex); |
@@ -376,7 +378,6 @@ int del_mtd_partitions(struct mtd_info *master) | |||
376 | 378 | ||
377 | return err; | 379 | return err; |
378 | } | 380 | } |
379 | EXPORT_SYMBOL(del_mtd_partitions); | ||
380 | 381 | ||
381 | static struct mtd_part *allocate_partition(struct mtd_info *master, | 382 | static struct mtd_part *allocate_partition(struct mtd_info *master, |
382 | const struct mtd_partition *part, int partno, | 383 | const struct mtd_partition *part, int partno, |
@@ -671,7 +672,6 @@ int add_mtd_partitions(struct mtd_info *master, | |||
671 | 672 | ||
672 | return 0; | 673 | return 0; |
673 | } | 674 | } |
674 | EXPORT_SYMBOL(add_mtd_partitions); | ||
675 | 675 | ||
676 | static DEFINE_SPINLOCK(part_parser_lock); | 676 | static DEFINE_SPINLOCK(part_parser_lock); |
677 | static LIST_HEAD(part_parsers); | 677 | static LIST_HEAD(part_parsers); |
@@ -722,11 +722,8 @@ int parse_mtd_partitions(struct mtd_info *master, const char **types, | |||
722 | parser = get_partition_parser(*types); | 722 | parser = get_partition_parser(*types); |
723 | if (!parser && !request_module("%s", *types)) | 723 | if (!parser && !request_module("%s", *types)) |
724 | parser = get_partition_parser(*types); | 724 | parser = get_partition_parser(*types); |
725 | if (!parser) { | 725 | if (!parser) |
726 | printk(KERN_NOTICE "%s partition parsing not available\n", | ||
727 | *types); | ||
728 | continue; | 726 | continue; |
729 | } | ||
730 | ret = (*parser->parse_fn)(master, pparts, origin); | 727 | ret = (*parser->parse_fn)(master, pparts, origin); |
731 | if (ret > 0) { | 728 | if (ret > 0) { |
732 | printk(KERN_NOTICE "%d %s partitions found on MTD device %s\n", | 729 | printk(KERN_NOTICE "%d %s partitions found on MTD device %s\n", |