瀏覽代碼

CFG_NAND_QUIET_TEST added to not warn upon missing NAND device
Patch by Stefan Roese, 07 Oct 2006

Stefan Roese 18 年之前
父節點
當前提交
5c912cb1c3
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 3 0
      CHANGELOG
  2. 2 0
      drivers/nand/nand_base.c

+ 3 - 0
CHANGELOG

@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 Changes since U-Boot 1.1.4:
 ======================================================================
 ======================================================================
 
 
+* CFG_NAND_QUIET_TEST added to not warn upon missing NAND device
+  Patch by Stefan Roese, 07 Oct 2006
+
 * Update ALPR code (NAND support working now)
 * Update ALPR code (NAND support working now)
   Patch by Stefan Roese, 07 Oct 2006
   Patch by Stefan Roese, 07 Oct 2006
 
 

+ 2 - 0
drivers/nand/nand_base.c

@@ -2407,7 +2407,9 @@ int nand_scan (struct mtd_info *mtd, int maxchips)
 	}
 	}
 
 
 	if (!nand_flash_ids[i].name) {
 	if (!nand_flash_ids[i].name) {
+#ifndef CFG_NAND_QUIET_TEST
 		printk (KERN_WARNING "No NAND device found!!!\n");
 		printk (KERN_WARNING "No NAND device found!!!\n");
+#endif
 		this->select_chip(mtd, -1);
 		this->select_chip(mtd, -1);
 		return 1;
 		return 1;
 	}
 	}