aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/ubi/build.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index a7571508fdab..e26fe12b1aae 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1114,8 +1114,11 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway)
1114 ubi_msg(ubi, "detaching mtd%d", ubi->mtd->index); 1114 ubi_msg(ubi, "detaching mtd%d", ubi->mtd->index);
1115#ifdef CONFIG_MTD_UBI_FASTMAP 1115#ifdef CONFIG_MTD_UBI_FASTMAP
1116 /* If we don't write a new fastmap at detach time we lose all 1116 /* If we don't write a new fastmap at detach time we lose all
1117 * EC updates that have been made since the last written fastmap. */ 1117 * EC updates that have been made since the last written fastmap.
1118 ubi_update_fastmap(ubi); 1118 * In case of fastmap debugging we omit the update to simulate an
1119 * unclean shutdown. */
1120 if (!ubi_dbg_chk_fastmap(ubi))
1121 ubi_update_fastmap(ubi);
1119#endif 1122#endif
1120 /* 1123 /*
1121 * Before freeing anything, we have to stop the background thread to 1124 * Before freeing anything, we have to stop the background thread to