Skip to contentSkip to conversation

nand_base: Silence warning when CONFIG_SYS_NAND_QUIET_TEST

PATCH New Peter Tyser 2 participants 2 messages Feb 4, 2009 – Feb 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nand_base: Silence warning when CONFIG_SYS_NAND_QUIET_TEST

Commit 0e8cc8bd92257da2e1df88cbc985e166e472ce61 removed support for disabling the "No NAND device found!!!" warning when CONFIG_SYS_NAND_QUIET_TEST was defined. This re-adds support for silencing the warning.

---
 drivers/mtd/nand/nand_base.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/mtd/nand/nand_base.c +2 -0
index ef37f97..bfa7874 100644
@@ -2618,7 +2618,9 @@ int nand_scan_ident(struct mtd_info *mtd, int maxchips)
 	type = nand_get_flash_type(mtd, chip, busw, &nand_maf_id);
 
 	if (IS_ERR(type)) {
+#ifndef CONFIG_SYS_NAND_QUIET_TEST
 		printk(KERN_WARNING "No NAND device found!!!\n");
+#endif
 		chip->select_chip(mtd, -1);
 		return PTR_ERR(type);
 	}
Signature · 1 line
1.6.0.2.GIT
#1 lore raw

PATCH 1/1 nand_base: Silence warning when CONFIG_SYS_NAND_QUIET_TEST

Quoted 4 lines · Peter Tyser

Commit 0e8cc8bd92257da2e1df88cbc985e166e472ce61 removed support for disabling the "No NAND device found!!!" warning when CONFIG_SYS_NAND_QUIET_TEST was defined. This re-adds support for silencing the warning.

It was actually commit cfa460adfdefcc30d104e1a9ee44994ee349bb7b that did it...

Applied to u-boot-nand-flash.

-Scott