summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/nand_util.c
diff options
context:
space:
mode:
authorWilliam Juul <william.juul@datarespons.no>2007-11-08 10:39:53 +0100
committerScott Wood <scottwood@freescale.com>2008-08-12 11:31:16 -0500
commit4cbb651b29cb64d378a06729970e1e153bb605b1 (patch)
tree8678f42ab0df1ae3c433a4d062310476e5163940 /drivers/mtd/nand/nand_util.c
parentcfa460adfdefcc30d104e1a9ee44994ee349bb7b (diff)
downloadu-boot-imx-4cbb651b29cb64d378a06729970e1e153bb605b1.zip
u-boot-imx-4cbb651b29cb64d378a06729970e1e153bb605b1.tar.gz
u-boot-imx-4cbb651b29cb64d378a06729970e1e153bb605b1.tar.bz2
Remove white space at end.
Signed-off-by: William Juul <william.juul@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers/mtd/nand/nand_util.c')
-rw-r--r--drivers/mtd/nand/nand_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c
index 78e70cc..9fe4866 100644
--- a/drivers/mtd/nand/nand_util.c
+++ b/drivers/mtd/nand/nand_util.c
@@ -128,7 +128,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
for (;
erase.addr < opts->offset + erase_length;
erase.addr += meminfo->erasesize) {
-
+
WATCHDOG_RESET ();
if (!opts->scrub && bbtest) {
@@ -163,7 +163,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
chip->ops.datbuf = NULL;
chip->ops.oobbuf = buf;
chip->ops.ooboffs = chip->badblockpos & ~0x01;
-
+
result = meminfo->write_oob(meminfo,
erase.addr + meminfo->oobsize,
&chip->ops);
@@ -254,7 +254,7 @@ static struct nand_ecclayout autoplace_ecclayout = {
* @chip: nand chip structure
* @oob: oob data buffer
* @ops: oob ops structure
- *
+ *
* Copied from nand_base.c
*/
static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob,
@@ -314,13 +314,13 @@ int nand_write_opts(nand_info_t *mtd, loff_t to, mtd_oob_ops_t *ops)
uint8_t *oob = ops->oobbuf;
uint8_t *buf = ops->datbuf;
int ret, subpage;
-
+
ops->retlen = 0;
if (!writelen)
return 0;
printk("nand_write_opts: to: 0x%08x, ops->len: 0x%08x\n", to, ops->len);
-
+
/* reject writes, which are not page aligned */
if (NOTALIGNED(to) || NOTALIGNED(ops->len)) {
printk(KERN_NOTICE "nand_write: "