aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/denali_spl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/denali_spl.c')
-rw-r--r--drivers/mtd/nand/denali_spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali_spl.c b/drivers/mtd/nand/denali_spl.c
index 15874135408..c6930325307 100644
--- a/drivers/mtd/nand/denali_spl.c
+++ b/drivers/mtd/nand/denali_spl.c
@@ -41,7 +41,7 @@ static int wait_for_irq(uint32_t irq_mask)
if (intr_status & INTR_STATUS__ECC_UNCOR_ERR) {
debug("Uncorrected ECC detected\n");
- return -EIO;
+ return -EBADMSG;
}
if (intr_status & irq_mask)