From 99d31b941feffc20a4789f0c922ba25ac3d76d0c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 24 Jul 2008 18:28:11 +0300 Subject: [PATCH] --- yaml --- r: 106078 b: refs/heads/master c: d37e6bf68fc1eb34a4ad21d9ae8890ed37ea80e7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mtd/ubi/build.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index d122eb78d9f7..fbe4e4e0c95d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: eeb16e87b6747c9a4f5769f33467c9d173e9f5ee +refs/heads/master: d37e6bf68fc1eb34a4ad21d9ae8890ed37ea80e7 diff --git a/trunk/drivers/mtd/ubi/build.c b/trunk/drivers/mtd/ubi/build.c index eba760b3b8c7..c7630a228310 100644 --- a/trunk/drivers/mtd/ubi/build.c +++ b/trunk/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) ubi->beb_rsvd_pebs); ubi_msg("max/mean erase counter: %d/%d", ubi->max_ec, ubi->mean_ec); - /* Enable the background thread */ - if (!DBG_DISABLE_BGT) { + if (!DBG_DISABLE_BGT) ubi->thread_enabled = 1; - wake_up_process(ubi->bgt_thread); - } + wake_up_process(ubi->bgt_thread); ubi_devices[ubi_num] = ubi; return ubi_num;