diff options
Diffstat (limited to 'include/linux')
| -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__ */ |
