[PATCH] mtd/physmap: use parse_mtd()
Atsushi Nemoto
anemo at mba.ocn.ne.jp
Thu Nov 13 08:51:01 EST 2008
On Wed, 12 Nov 2008 18:39:48 -0500, Mike Frysinger <vapier at gentoo.org> wrote:
> Call parse_mtd() to handle partition/device registration rather than doing
> it all ourself.
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> drivers/mtd/maps/physmap.c | 21 +--------------------
> 1 files changed, 1 insertions(+), 20 deletions(-)
You should adjust physmap_flash_remove() too.
* remove kfree(info->parts)
* call del_mtd_partitions() or del_mtd_device()
Maybe del_parsed_mtd() or something is required?
---
Atsushi Nemoto
More information about the linux-mtd
mailing list