summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-22 09:41:13 -0500
committerWolfgang Denk <wd@denx.de>2011-01-09 18:05:11 +0100
commit4ffeab2cc00b61bc4616d9e3c25d33937b0feb34 (patch)
treee84a12294c8ba2d302faf01dde575c74a1abc857 /drivers/mtd
parent82359aec45506263042ffcecc2732cdf47def329 (diff)
downloadu-boot-imx-4ffeab2cc00b61bc4616d9e3c25d33937b0feb34.zip
u-boot-imx-4ffeab2cc00b61bc4616d9e3c25d33937b0feb34.tar.gz
u-boot-imx-4ffeab2cc00b61bc4616d9e3c25d33937b0feb34.tar.bz2
cfi_flash: avoid flash_verbose when possible
The flash_verbose logic is only used by the CFI MTD layer, so if we aren't using that, disable the logic completely. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/cfi_flash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index b006884..1e8d375 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -63,7 +63,11 @@
*/
static uint flash_offset_cfi[2] = { FLASH_OFFSET_CFI, FLASH_OFFSET_CFI_ALT };
+#ifdef CONFIG_FLASH_CFI_MTD
static uint flash_verbose = 1;
+#else
+#define flash_verbose 1
+#endif
flash_info_t flash_info[CFI_MAX_FLASH_BANKS]; /* FLASH chips info */
@@ -2042,10 +2046,12 @@ ulong flash_get_size (phys_addr_t base, int banknum)
return (info->size);
}
+#ifdef CONFIG_FLASH_CFI_MTD
void flash_set_verbose(uint v)
{
flash_verbose = v;
}
+#endif
static void cfi_flash_set_config_reg(u32 base, u16 val)
{