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 /include/linux/mtd | |
| 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>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/mtd.h | 23 |
1 files changed, 0 insertions, 23 deletions
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__ */ |
