diff options
| -rw-r--r-- | drivers/mtd/nand/nand_base.c | 3 | ||||
| -rw-r--r-- | include/linux/mtd/nand.h | 4 |
2 files changed, 5 insertions, 2 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 | } |
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 2476078a032f..ccab9dfc5217 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -170,7 +170,6 @@ typedef enum { | |||
| 170 | /* Chip does not allow subpage writes */ | 170 | /* Chip does not allow subpage writes */ |
| 171 | #define NAND_NO_SUBPAGE_WRITE 0x00000200 | 171 | #define NAND_NO_SUBPAGE_WRITE 0x00000200 |
| 172 | 172 | ||
| 173 | |||
| 174 | /* Options valid for Samsung large page devices */ | 173 | /* Options valid for Samsung large page devices */ |
| 175 | #define NAND_SAMSUNG_LP_OPTIONS \ | 174 | #define NAND_SAMSUNG_LP_OPTIONS \ |
| 176 | (NAND_NO_PADDING | NAND_CACHEPRG | NAND_COPYBACK) | 175 | (NAND_NO_PADDING | NAND_CACHEPRG | NAND_COPYBACK) |
| @@ -196,6 +195,9 @@ typedef enum { | |||
| 196 | /* This option is defined if the board driver allocates its own buffers | 195 | /* This option is defined if the board driver allocates its own buffers |
| 197 | (e.g. because it needs them DMA-coherent */ | 196 | (e.g. because it needs them DMA-coherent */ |
| 198 | #define NAND_OWN_BUFFERS 0x00040000 | 197 | #define NAND_OWN_BUFFERS 0x00040000 |
| 198 | /* Chip may not exist, so silence any errors in scan */ | ||
| 199 | #define NAND_SCAN_SILENT_NODEV 0x00080000 | ||
| 200 | |||
| 199 | /* Options set by nand scan */ | 201 | /* Options set by nand scan */ |
| 200 | /* Nand scan has allocated controller struct */ | 202 | /* Nand scan has allocated controller struct */ |
| 201 | #define NAND_CONTROLLER_ALLOC 0x80000000 | 203 | #define NAND_CONTROLLER_ALLOC 0x80000000 |
