diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-15 04:30:40 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-03-16 07:50:17 -0400 |
commit | 28237e4583604818294dc1ce7881db5f53377b9c (patch) | |
tree | 84fc5d22a1f4213824445253cc9702be96069b47 /drivers/mtd/ubi/build.c | |
parent | 92d124f5314913a21f7fa98b22ee457dab171edd (diff) |
UBI: make tests modes dynamic
Similarly to the debugging checks and message, make the test modes
be dynamically selected via the "debug_tsts" module parameter or
via the "/sys/module/ubi/parameters/debug_tsts" sysfs file. This
is consistent with UBIFS as well.
And now, since all the Kconfig knobs became dynamic, we can remove
the Kconfig.debug file completely.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 3a047199a105..a801ea6b8b6d 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -986,8 +986,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) | |||
986 | * checks @ubi->thread_enabled. Otherwise we may fail to wake it up. | 986 | * checks @ubi->thread_enabled. Otherwise we may fail to wake it up. |
987 | */ | 987 | */ |
988 | spin_lock(&ubi->wl_lock); | 988 | spin_lock(&ubi->wl_lock); |
989 | if (!DBG_DISABLE_BGT) | 989 | ubi->thread_enabled = 1; |
990 | ubi->thread_enabled = 1; | ||
991 | wake_up_process(ubi->bgt_thread); | 990 | wake_up_process(ubi->bgt_thread); |
992 | spin_unlock(&ubi->wl_lock); | 991 | spin_unlock(&ubi->wl_lock); |
993 | 992 | ||