]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/nand_base.c
EfikaMX: Enable EXT2 booting
[u-boot] / drivers / mtd / nand / nand_base.c
index 52f8575aac67f0e1933dabb4c0ce4e304ef26618..1a95a91318f36c612cebc41becac8d94fe14d68c 100644 (file)
@@ -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)