summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2011-02-25 13:06:18 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-03-11 14:22:47 +0000
commit775adc3d44c8076d3e475fabebb61c08421c4421 (patch)
tree49b97d56a7b46d5b94204c5ed5bcfca2fb2ee817 /drivers/mtd/nand
parentc93ff6bf16523d33e991a1fadde1b8d63eb7cd2c (diff)
downloadlinux-775adc3d44c8076d3e475fabebb61c08421c4421.tar.gz
linux-775adc3d44c8076d3e475fabebb61c08421c4421.tar.bz2
linux-775adc3d44c8076d3e475fabebb61c08421c4421.zip
mtd: nand: fix a typo in a commentary
Signed-off-by: Jason Liu <r64343@freescale.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-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 a9c6ce745767..da7604050347 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2377,7 +2377,7 @@ static int nand_do_write_oob(struct mtd_info *mtd, loff_t to,
return -EINVAL;
}
- /* Do not allow reads past end of device */
+ /* Do not allow write past end of device */
if (unlikely(to >= mtd->size ||
ops->ooboffs + ops->ooblen >
((mtd->size >> chip->page_shift) -