diff options
-rw-r--r-- | drivers/mtd/mtdpart.c | 2 | ||||
-rw-r--r-- | include/linux/mtd/partitions.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 6997c6cdc471..c90b7ba362d7 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -706,6 +706,8 @@ static struct mtd_part_parser *get_partition_parser(const char *name) | |||
706 | return ret; | 706 | return ret; |
707 | } | 707 | } |
708 | 708 | ||
709 | #define put_partition_parser(p) do { module_put((p)->owner); } while (0) | ||
710 | |||
709 | int register_mtd_parser(struct mtd_part_parser *p) | 711 | int register_mtd_parser(struct mtd_part_parser *p) |
710 | { | 712 | { |
711 | spin_lock(&part_parser_lock); | 713 | spin_lock(&part_parser_lock); |
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index c98d6b858c2c..2475228c1158 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h | |||
@@ -79,8 +79,6 @@ struct mtd_part_parser { | |||
79 | extern int register_mtd_parser(struct mtd_part_parser *parser); | 79 | extern int register_mtd_parser(struct mtd_part_parser *parser); |
80 | extern int deregister_mtd_parser(struct mtd_part_parser *parser); | 80 | extern int deregister_mtd_parser(struct mtd_part_parser *parser); |
81 | 81 | ||
82 | #define put_partition_parser(p) do { module_put((p)->owner); } while(0) | ||
83 | |||
84 | int mtd_is_partition(struct mtd_info *mtd); | 82 | int mtd_is_partition(struct mtd_info *mtd); |
85 | int mtd_add_partition(struct mtd_info *master, char *name, | 83 | int mtd_add_partition(struct mtd_info *master, char *name, |
86 | long long offset, long long length); | 84 | long long offset, long long length); |