summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gardiner <bengardiner@nanometrics.ca>2011-05-24 10:18:34 -0400
committerScott Wood <scottwood@freescale.com>2011-07-01 15:56:51 -0500
commitbee038e9fe2fe0fcd53e89aac32fb8948555c040 (patch)
tree9d79f190800e97219424cbf6b06ec7b2b1a37891
parent2c4ed7d2506621574284ee66da27ce88b7c21a06 (diff)
downloadu-boot-imx-bee038e9fe2fe0fcd53e89aac32fb8948555c040.zip
u-boot-imx-bee038e9fe2fe0fcd53e89aac32fb8948555c040.tar.gz
u-boot-imx-bee038e9fe2fe0fcd53e89aac32fb8948555c040.tar.bz2
nand_base: trivial: fix comment read/write comment
Replace an incorrect 'read' with 'write' in a comment. Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Acked-by: Detlev Zundel <dzu@denx.de> Signed-off-by: Scott Wood <scottwood@freescale.com>
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 52f8575..1a95a91 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -1950,7 +1950,7 @@ static int nand_write(struct mtd_info *mtd, loff_t to, size_t len,
struct nand_chip *chip = mtd->priv;
int ret;
- /* Do not allow reads past end of device */
+ /* Do not allow writes past end of device */
if ((to + len) > mtd->size)
return -EINVAL;
if (!len)