aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-11-02 13:12:33 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-11-30 04:48:31 -0500
commitb1c6e6db5bb7acad82e1c64914c6a9404dae3ee1 (patch)
tree92fda540b31a8687dca448fd1e91dd1f78a08825 /drivers/mtd/nand/nand_base.c
parent6eb4feffb9d619a44fe434e777ef095a29cf4759 (diff)
mtd: nand: add option to quieten off the no device found messgae
Add NAND_SCAN_SILENT_NODEV to chip->options to the user-worrying messages 'No NAND device found!!!'. This message often worries users (was three exclamation marks really necessary?) and especially in systems such as the Simtec Osiris where there may be optional NAND devices which are not known until probe time. Revised version of the original NAND_PROBE_SPECULATIVE patch after comments by Artem Bityutskiy about adding a whole new call. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Simtec Linux Team <linux@simtec.co.uk> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index ba06473326d1..724cb2c9ad3f 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2756,7 +2756,8 @@ int nand_scan_ident(struct mtd_info *mtd, int maxchips)
2756 type = nand_get_flash_type(mtd, chip, busw, &nand_maf_id); 2756 type = nand_get_flash_type(mtd, chip, busw, &nand_maf_id);
2757 2757
2758 if (IS_ERR(type)) { 2758 if (IS_ERR(type)) {
2759 printk(KERN_WARNING "No NAND device found!!!\n"); 2759 if (!(chip->options & NAND_SCAN_SILENT_NODEV))
2760 printk(KERN_WARNING "No NAND device found.\n");
2760 chip->select_chip(mtd, -1); 2761 chip->select_chip(mtd, -1);
2761 return PTR_ERR(type); 2762 return PTR_ERR(type);
2762 } 2763 }