summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/nand_write.c')
-rw-r--r--drivers/mtd/nand/nand_write.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mtd/nand/nand_write.c b/drivers/mtd/nand/nand_write.c
index 5ed04cee57..999712795c 100644
--- a/drivers/mtd/nand/nand_write.c
+++ b/drivers/mtd/nand/nand_write.c
@@ -273,13 +273,6 @@ int nand_do_write_ops(struct mtd_info *mtd, loff_t to,
if (!writelen)
return 0;
- /* reject writes, which are not page aligned */
- if (NOTALIGNED(to) || NOTALIGNED(ops->len)) {
- printk(KERN_NOTICE "nand_write: "
- "Attempt to write not page aligned data\n");
- return -EINVAL;
- }
-
column = to & (mtd->writesize - 1);
subpage = column || (writelen & (mtd->writesize - 1));