diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-16 15:27:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-17 12:05:48 +0100 |
commit | 9499f30f5e8da9049e80ae390db310f1c27ee7ee (patch) | |
tree | 678bc0943c472b6a27d3885cd9c7ac38d5cb08e1 /include/linux | |
parent | d4d667c0d0b14b9774d3d4af5d55889dcc8091fc (diff) | |
download | barebox-9499f30f5e8da9049e80ae390db310f1c27ee7ee.tar.gz barebox-9499f30f5e8da9049e80ae390db310f1c27ee7ee.tar.xz |
mtd: remove unused debug defines
MTD_DEBUG was only used by the i.MX Nand driver and is now unused.
Remove the mtd specific debug defines.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/mtd.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 421a941aad..5ff09c0472 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -311,25 +311,6 @@ int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs); int mtd_all_ff(const void *buf, unsigned int len); -/* - * Debugging macro and defines - */ -#define MTD_DEBUG_LEVEL0 (0) /* Quiet */ -#define MTD_DEBUG_LEVEL1 (1) /* Audible */ -#define MTD_DEBUG_LEVEL2 (2) /* Loud */ -#define MTD_DEBUG_LEVEL3 (3) /* Noisy */ - -#ifdef CONFIG_MTD_DEBUG -#define MTD_DEBUG(n, args...) \ - do { \ - if (n <= CONFIG_MTD_DEBUG_VERBOSE) \ - pr_info( args); \ - } while(0) -#else /* CONFIG_MTD_DEBUG */ -#define MTD_DEBUG(n, args...) do { } while(0) - -#endif /* CONFIG_MTD_DEBUG */ - static inline int mtd_is_bitflip(int err) { return err == -EUCLEAN; } |