Skip to content

Commit

Permalink
[MTD] [NAND] pxa3xx_nand: added warning which tells id of detected NAND
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Enrico Scholz authored and David Woodhouse committed Sep 1, 2008
1 parent c8c17c8 commit 2675e94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; i<pdata->num_flash; ++i) {
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 2675e94

Please sign in to comment.