lkml.org 
[lkml]   [2008]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] mtd/physmap: use parse_mtd()
    From
    On Wed, 12 Nov 2008 18:39:48 -0500, Mike Frysinger <vapier@gentoo.org> wrote:
    > Call parse_mtd() to handle partition/device registration rather than doing
    > it all ourself.
    >
    > Signed-off-by: Mike Frysinger <vapier@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


    \
     
     \ /
      Last update: 2008-11-13 14:53    [W:0.020 / U:244.772 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site