summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorRomain Izard <romain.izard.pro@gmail.com>2016-01-15 11:34:56 +0100
committerBrian Norris <computersforpeace@gmail.com>2016-01-23 15:03:47 -0800
commite88b7f7d6ca47531af602cfb6abdb31ea13eabc3 (patch)
tree5960b2fd942e6b08a565a8fd1788701d65e2493d /drivers/mtd/nand
parentb8b0e465ddb0c9cb16089ddfed68a8569e006465 (diff)
downloadlinux-next-e88b7f7d6ca47531af602cfb6abdb31ea13eabc3.tar.gz
mtd: atmel_nand: Simplify error messages
The error messages when the ECC controller is misconfigured through the device tree are very precise. As a result they can (and will) get obsolete when new revisions of the controller appear. Simplify them before adding the support for the new revision. Signed-off-by: Romain Izard <romain.izard.pro@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/atmel_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 0ae6cba5bef5..ad9f4b062049 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -1550,7 +1550,7 @@ static int atmel_of_init_port(struct atmel_nand_host *host,
if ((val != 2) && (val != 4) && (val != 8) && (val != 12) &&
(val != 24)) {
dev_err(host->dev,
- "Unsupported PMECC correction capability: %d; should be 2, 4, 8, 12 or 24\n",
+ "Required ECC strength not supported: %u\n",
val);
return -EINVAL;
}
@@ -1560,7 +1560,7 @@ static int atmel_of_init_port(struct atmel_nand_host *host,
if (of_property_read_u32(np, "atmel,pmecc-sector-size", &val) == 0) {
if ((val != 512) && (val != 1024)) {
dev_err(host->dev,
- "Unsupported PMECC sector size: %d; should be 512 or 1024 bytes\n",
+ "Required ECC sector size not supported: %u\n",
val);
return -EINVAL;
}