From 5b237f78cd93f3331cad331a6aebd53780335948 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 29 Aug 2008 12:59:52 +0200 Subject: [PATCH] --- yaml --- r: 116015 b: refs/heads/master c: 2675e9447bb5c861dbd29c5fe55b7ce2ad3ff0f5 h: refs/heads/master i: 116013: b598a24b6c3dcef5d860e8baa88eb8cd3c30823f 116011: 8c88cbec009ca031a34a526cdc9240f000a9013a 116007: 0f036362792feeee438b90c7af4128c5b5f18c39 115999: 2bd8a850fb8e13dab04e6dafb3a6510c6f6799d1 v: v3 --- [refs] | 2 +- trunk/drivers/mtd/nand/pxa3xx_nand.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4ba42157e417..9098daa428a9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c8c17c888d936c58ceb28b084a6272d67e10ea28 +refs/heads/master: 2675e9447bb5c861dbd29c5fe55b7ce2ad3ff0f5 diff --git a/trunk/drivers/mtd/nand/pxa3xx_nand.c b/trunk/drivers/mtd/nand/pxa3xx_nand.c index bc37f551edf5..c0fa9c9edf08 100644 --- a/trunk/drivers/mtd/nand/pxa3xx_nand.c +++ b/trunk/drivers/mtd/nand/pxa3xx_nand.c @@ -924,7 +924,7 @@ static int pxa3xx_nand_detect_flash(struct pxa3xx_nand_info *info, const struct pxa3xx_nand_platform_data *pdata) { const struct pxa3xx_nand_flash *f; - uint32_t id; + uint32_t id = -1; int i; for (i = 0; inum_flash; ++i) { @@ -956,6 +956,9 @@ static int pxa3xx_nand_detect_flash(struct pxa3xx_nand_info *info, } #endif + dev_warn(&info->pdev->dev, + "failed to detect configured nand flash; found %04x instead of\n", + id); return -ENODEV; }