Re: [PATCH] mtd/physmap: use parse_mtd()
From: Atsushi Nemoto
Date: Thu Nov 13 2008 - 08:51:08 EST
On Wed, 12 Nov 2008 18:39:48 -0500, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> Call parse_mtd() to handle partition/device registration rather than doing
> it all ourself.
>
> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/