diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-06-23 13:26:14 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 14:02:13 +0200 |
commit | 953b3bd1911260b8acd8f35fa26440c1a943e59a (patch) | |
tree | 5ba0406f0a4c0ea47b7cc1b0c85b6c35565dbf46 /drivers/mtd/mtdpart.c | |
parent | mtd: hide parse_mtd_partitions (diff) | |
download | linux-953b3bd1911260b8acd8f35fa26440c1a943e59a.tar.xz linux-953b3bd1911260b8acd8f35fa26440c1a943e59a.zip |
mtd: remove put_partition_parser() from public header
There is no need to pollute public header with a definition private
to mtdpart.c. Move it from mtd/partitions.h to mtdpart.c
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 2 |
1 files changed, 2 insertions, 0 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) return ret; } +#define put_partition_parser(p) do { module_put((p)->owner); } while (0) + int register_mtd_parser(struct mtd_part_parser *p) { spin_lock(&part_parser_lock); |