From: Peter Tyser Date: Wed, 4 Feb 2009 19:39:40 +0000 (-0600) Subject: NAND: Silence warning when CONFIG_SYS_NAND_QUIET_TEST X-Git-Tag: v2009.03-rc1~109^2~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10dc6a9bef73d7d4cb25b3fde27ee91f8484b126;p=platform%2Fkernel%2Fu-boot.git NAND: Silence warning when CONFIG_SYS_NAND_QUIET_TEST Commit cfa460adfdefcc30d104e1a9ee44994ee349bb7b 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. Signed-off-by: Peter Tyser Signed-off-by: Scott Wood --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index ef37f97..bfa7874 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -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); }