aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r--drivers/mtd/ubi/build.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index eba760b3b8c7..c7630a228310 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -870,11 +870,9 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)
870 ubi->beb_rsvd_pebs); 870 ubi->beb_rsvd_pebs);
871 ubi_msg("max/mean erase counter: %d/%d", ubi->max_ec, ubi->mean_ec); 871 ubi_msg("max/mean erase counter: %d/%d", ubi->max_ec, ubi->mean_ec);
872 872
873 /* Enable the background thread */ 873 if (!DBG_DISABLE_BGT)
874 if (!DBG_DISABLE_BGT) {
875 ubi->thread_enabled = 1; 874 ubi->thread_enabled = 1;
876 wake_up_process(ubi->bgt_thread); 875 wake_up_process(ubi->bgt_thread);
877 }
878 876
879 ubi_devices[ubi_num] = ubi; 877 ubi_devices[ubi_num] = ubi;
880 return ubi_num; 878 return ubi_num;