summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorJason Liu2011-02-25 06:06:18 +0100
committerDavid Woodhouse2011-03-11 15:22:47 +0100
commit775adc3d44c8076d3e475fabebb61c08421c4421 (patch)
tree49b97d56a7b46d5b94204c5ed5bcfca2fb2ee817 /drivers/mtd/nand/nand_base.c
parentmtd: omap: add new variable to platform data to control onenand unlocking (diff)
downloadkernel-qcow2-linux-775adc3d44c8076d3e475fabebb61c08421c4421.tar.gz
kernel-qcow2-linux-775adc3d44c8076d3e475fabebb61c08421c4421.tar.xz
kernel-qcow2-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/nand_base.c')
-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) -