diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-07-19 13:06:12 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:16 -0400 |
commit | 87ed114bb22bc65fce59c709e67599c1940efc7f (patch) | |
tree | 7e47ce72216abaffc420fee31dfdc6d84b4af7bd | |
parent | e6453521edcaa6f130946b5f4fcaf28dbc02f2ed (diff) |
mtd: remove CONFIG_MTD_DEBUG
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
-rw-r--r-- | drivers/mtd/Kconfig | 13 | ||||
-rw-r--r-- | include/linux/mtd/mtd.h | 23 |
2 files changed, 0 insertions, 36 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index cc02e2115efb..4925aa962af3 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -12,19 +12,6 @@ menuconfig MTD | |||
12 | 12 | ||
13 | if MTD | 13 | if MTD |
14 | 14 | ||
15 | config MTD_DEBUG | ||
16 | bool "Debugging" | ||
17 | help | ||
18 | This turns on low-level debugging for the entire MTD sub-system. | ||
19 | Normally, you should say 'N'. | ||
20 | |||
21 | config MTD_DEBUG_VERBOSE | ||
22 | int "Debugging verbosity (0 = quiet, 3 = noisy)" | ||
23 | depends on MTD_DEBUG | ||
24 | default "0" | ||
25 | help | ||
26 | Determines the verbosity level of the MTD debugging messages. | ||
27 | |||
28 | config MTD_TESTS | 15 | config MTD_TESTS |
29 | tristate "MTD tests support" | 16 | tristate "MTD tests support" |
30 | depends on m | 17 | depends on m |
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 62d56f933b87..68ea22963a33 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -360,27 +360,4 @@ void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size); | |||
360 | 360 | ||
361 | void mtd_erase_callback(struct erase_info *instr); | 361 | void mtd_erase_callback(struct erase_info *instr); |
362 | 362 | ||
363 | /* | ||
364 | * Debugging macro and defines | ||
365 | */ | ||
366 | #define MTD_DEBUG_LEVEL0 (0) /* Quiet */ | ||
367 | #define MTD_DEBUG_LEVEL1 (1) /* Audible */ | ||
368 | #define MTD_DEBUG_LEVEL2 (2) /* Loud */ | ||
369 | #define MTD_DEBUG_LEVEL3 (3) /* Noisy */ | ||
370 | |||
371 | #ifdef CONFIG_MTD_DEBUG | ||
372 | #define DEBUG(n, args...) \ | ||
373 | do { \ | ||
374 | if (n <= CONFIG_MTD_DEBUG_VERBOSE) \ | ||
375 | printk(KERN_INFO args); \ | ||
376 | } while(0) | ||
377 | #else /* CONFIG_MTD_DEBUG */ | ||
378 | #define DEBUG(n, args...) \ | ||
379 | do { \ | ||
380 | if (0) \ | ||
381 | printk(KERN_INFO args); \ | ||
382 | } while(0) | ||
383 | |||
384 | #endif /* CONFIG_MTD_DEBUG */ | ||
385 | |||
386 | #endif /* __MTD_MTD_H__ */ | 363 | #endif /* __MTD_MTD_H__ */ |