aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2008-08-29 06:59:52 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-09-01 16:38:44 -0400
commit2675e9447bb5c861dbd29c5fe55b7ce2ad3ff0f5 (patch)
tree39137abb08a1ba168d2ed17525bd0ba690b4db99 /drivers/mtd
parentc8c17c888d936c58ceb28b084a6272d67e10ea28 (diff)
[MTD] [NAND] pxa3xx_nand: added warning which tells id of detected NAND
Minor patch to help debugging of NAND detection. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index bc37f551edf5..c0fa9c9edf08 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -924,7 +924,7 @@ static int pxa3xx_nand_detect_flash(struct pxa3xx_nand_info *info,
924 const struct pxa3xx_nand_platform_data *pdata) 924 const struct pxa3xx_nand_platform_data *pdata)
925{ 925{
926 const struct pxa3xx_nand_flash *f; 926 const struct pxa3xx_nand_flash *f;
927 uint32_t id; 927 uint32_t id = -1;
928 int i; 928 int i;
929 929
930 for (i = 0; i<pdata->num_flash; ++i) { 930 for (i = 0; i<pdata->num_flash; ++i) {
@@ -956,6 +956,9 @@ static int pxa3xx_nand_detect_flash(struct pxa3xx_nand_info *info,
956 } 956 }
957#endif 957#endif
958 958
959 dev_warn(&info->pdev->dev,
960 "failed to detect configured nand flash; found %04x instead of\n",
961 id);
959 return -ENODEV; 962 return -ENODEV;
960} 963}
961 964