mtd: pmcmsp-flash: fix error paths in init_msp_flash
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 10 Aug 2009 08:16:37 +0000 (10:16 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 4 Sep 2009 08:42:06 +0000 (09:42 +0100)
commit2c78c44362bc9b7c715a3c2119b89a407c1cb739
tree2ecdf19b0bccb73b60486c6784ae7cf0c7d67350
parentfca910883324d437a24d447b08f524fa19261a94
mtd: pmcmsp-flash: fix error paths in init_msp_flash

Cleanin up after errors in init_msp_flash().

Also cleanup_msp_flash() attempts to determine the size of
msp_flash with `sizeof(msp_flash) / sizeof(struct mtd_info **)'
This will not work since msp_flash is not an array.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/pmcmsp-flash.c