diff options
Diffstat (limited to 'drivers/mtd/maps/fortunet.c')
-rw-r--r-- | drivers/mtd/maps/fortunet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/maps/fortunet.c b/drivers/mtd/maps/fortunet.c index c6bf4e1219ef..7c50c271651c 100644 --- a/drivers/mtd/maps/fortunet.c +++ b/drivers/mtd/maps/fortunet.c | |||
@@ -218,8 +218,11 @@ int __init init_fortunet(void) | |||
218 | map_regions[ix].map_info.size); | 218 | map_regions[ix].map_info.size); |
219 | if(!map_regions[ix].map_info.virt) | 219 | if(!map_regions[ix].map_info.virt) |
220 | { | 220 | { |
221 | int j = 0; | ||
221 | printk(MTD_FORTUNET_PK "%s flash failed to ioremap!\n", | 222 | printk(MTD_FORTUNET_PK "%s flash failed to ioremap!\n", |
222 | map_regions[ix].map_info.name); | 223 | map_regions[ix].map_info.name); |
224 | for (j = 0 ; j < ix; j++) | ||
225 | iounmap(map_regions[j].map_info.virt); | ||
223 | return -ENXIO; | 226 | return -ENXIO; |
224 | } | 227 | } |
225 | simple_map_init(&map_regions[ix].map_info); | 228 | simple_map_init(&map_regions[ix].map_info); |