projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8022c13
)
mtd: OneNAND: fix incorrect bufferram offset
author
Mika Korhonen
<
[email protected]
>
Thu, 11 Jun 2009 11:05:07 +0000
(14:05 +0300)
committer
David Woodhouse
<
[email protected]
>
Mon, 3 Aug 2009 13:21:58 +0000
(14:21 +0100)
Fixes the case where CONFIG_MTD_ONENAND_2X_PROGRAM is set and
the real page size differs from mtd_info.writesize.
Signed-off-by: Mika Korhonen <
[email protected]
>
Acked-by: Kyungmin Park <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/mtd/onenand/omap2.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/onenand/omap2.c
b/drivers/mtd/onenand/omap2.c
index 38d656b9b2eecc8f5029bb0b7a6e89f921ff5a2d..6fac1f496d4ac74c76978527d64a783bed250abf 100644
(file)
--- a/
drivers/mtd/onenand/omap2.c
+++ b/
drivers/mtd/onenand/omap2.c
@@
-266,7
+266,7
@@
static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area)
if (ONENAND_CURRENT_BUFFERRAM(this)) {
if (area == ONENAND_DATARAM)
- return
mtd
->writesize;
+ return
this
->writesize;
if (area == ONENAND_SPARERAM)
return mtd->oobsize;
}