[MTD] mtdpart: Make all partition parsers return allocated array
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 6 Mar 2009 11:01:08 +0000 (20:01 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 20 Mar 2009 18:55:17 +0000 (18:55 +0000)
commit17b536cc43bcf2afcc20b4812f93a895881b5f4f
tree4f460cf224c26633159eb32ccb90e6b09a9e0658
parentbd50a0ffca0bbb9baa60ab1ef2c09cf7561e1223
[MTD] mtdpart: Make all partition parsers return allocated array

Currently redboot and afx parser return allocated mtd_partition array
and cmdlinepart and ar7 return persistent array.

This patch make cmdlinepart and ar7 also return allocated array, so
that all users can free it regardless of parser type.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/ar7part.c
drivers/mtd/cmdlinepart.c