summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nand_samsung.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/nand_samsung.c')
-rw-r--r--drivers/mtd/nand/nand_samsung.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_samsung.c b/drivers/mtd/nand/nand_samsung.c
index 9cfc4035a420..1e0755997762 100644
--- a/drivers/mtd/nand/nand_samsung.c
+++ b/drivers/mtd/nand/nand_samsung.c
@@ -84,6 +84,9 @@ static void samsung_nand_decode_id(struct nand_chip *chip)
case 7:
chip->ecc_strength_ds = 60;
break;
+ default:
+ WARN(1, "Could not decode ECC info");
+ chip->ecc_step_ds = 0;
}
}
} else {