aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2014-06-12 09:20:42 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-07-28 01:06:30 -0400
commitd8c0372baadb29e60668c2bddfcf39294f3d4581 (patch)
tree232244c32e39bfff4ad996116f4cf86ffaa902ad /drivers/mtd/nand
parent6a7609662b469ac79c8c9e703620c2708a868297 (diff)
mtd: gpmi: remove line breaks from error messages and improve wording
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/gpmi-nand/gpmi-nand.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 31032b17dae5..16a533a78edd 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -285,9 +285,8 @@ static int legacy_set_geometry(struct gpmi_nand_data *this)
285 geo->ecc_strength = get_ecc_strength(this); 285 geo->ecc_strength = get_ecc_strength(this);
286 if (!gpmi_check_ecc(this)) { 286 if (!gpmi_check_ecc(this)) {
287 dev_err(this->dev, 287 dev_err(this->dev,
288 "We can not support this nand chip." 288 "required ecc strength of the NAND chip: %d is not supported by the GPMI controller (%d)\n",
289 " Its required ecc strength(%d) is beyond our" 289 geo->ecc_strength,
290 " capability(%d).\n", geo->ecc_strength,
291 this->devdata->bch_max_ecc_strength); 290 this->devdata->bch_max_ecc_strength);
292 return -EINVAL; 291 return -EINVAL;
293 } 292 }
@@ -1597,8 +1596,9 @@ static int mx23_boot_init(struct gpmi_nand_data *this)
1597 dev_dbg(dev, "Transcribing mark in block %u\n", block); 1596 dev_dbg(dev, "Transcribing mark in block %u\n", block);
1598 ret = chip->block_markbad(mtd, byte); 1597 ret = chip->block_markbad(mtd, byte);
1599 if (ret) 1598 if (ret)
1600 dev_err(dev, "Failed to mark block bad with " 1599 dev_err(dev,
1601 "ret %d\n", ret); 1600 "Failed to mark block bad with ret %d\n",
1601 ret);
1602 } 1602 }
1603 } 1603 }
1604 1604