aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-10-05 03:30:04 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-10-05 03:30:04 -0400
commit8032747e7680a31cdde293421af62d2e1904c528 (patch)
tree4c977de134ee517aaa02fde39d5425abec86d7f0 /drivers/mtd/onenand
parent297758f8fc4e92b1915d2f5f2f84cedfe8941e5a (diff)
mtd: make onenand_base.c compile again
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 8935e634a87e..6e250f3a4a16 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1051,7 +1051,7 @@ static int onenand_mlc_read_ops_nolock(struct mtd_info *mtd, loff_t from,
1051 int writesize = this->writesize; 1051 int writesize = this->writesize;
1052 1052
1053 DEBUG(MTD_DEBUG_LEVEL3, "%s: from = 0x%08x, len = %i\n", 1053 DEBUG(MTD_DEBUG_LEVEL3, "%s: from = 0x%08x, len = %i\n",
1054 (unsigned int) from, (int) len); 1054 __func__, (unsigned int) from, (int) len);
1055 1055
1056 if (ops->mode == MTD_OOB_AUTO) 1056 if (ops->mode == MTD_OOB_AUTO)
1057 oobsize = this->ecclayout->oobavail; 1057 oobsize = this->ecclayout->oobavail;
@@ -2022,8 +2022,8 @@ static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to,
2022 if (unlikely(to >= mtd->size || 2022 if (unlikely(to >= mtd->size ||
2023 column + len > ((mtd->size >> this->page_shift) - 2023 column + len > ((mtd->size >> this->page_shift) -
2024 (to >> this->page_shift)) * oobsize)) { 2024 (to >> this->page_shift)) * oobsize)) {
2025 printk(KERN_ERR "%s: Attempted to write past end of device\n" 2025 printk(KERN_ERR "%s: Attempted to write past end of device\n",
2026 __func__); 2026 __func__);
2027 return -EINVAL; 2027 return -EINVAL;
2028 } 2028 }
2029 2029