aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/omap-toto-flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/omap-toto-flash.c')
-rw-r--r--drivers/mtd/maps/omap-toto-flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/maps/omap-toto-flash.c b/drivers/mtd/maps/omap-toto-flash.c
index da36e8dddd17..763304154a92 100644
--- a/drivers/mtd/maps/omap-toto-flash.c
+++ b/drivers/mtd/maps/omap-toto-flash.c
@@ -124,8 +124,7 @@ static void __exit omap_toto_mtd_cleanup(void)
124 if (flash_mtd) { 124 if (flash_mtd) {
125 del_mtd_partitions(flash_mtd); 125 del_mtd_partitions(flash_mtd);
126 map_destroy(flash_mtd); 126 map_destroy(flash_mtd);
127 if (parsed_parts) 127 kfree(parsed_parts);
128 kfree(parsed_parts);
129 } 128 }
130} 129}
131 130