Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207770
b: refs/heads/master
c: 42b0aab
h: refs/heads/master
v: v3
  • Loading branch information
Rohit Hassan Sathyanarayan authored and David Woodhouse committed Aug 2, 2010
1 parent 2759ae7 commit 87f04ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02ed70bb7b2644936959aee617296022dedb109e
refs/heads/master: 42b0aab1cc30b2fa7e0a99b832bd1b5c9b59757d
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,11 @@ static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t le

default:
block = onenand_block(this, addr);
page = (int) (addr - onenand_addr(this, block)) >> this->page_shift;

if (FLEXONENAND(this))
page = (int) (addr - onenand_addr(this, block))>>\
this->page_shift;
else
page = (int) (addr >> this->page_shift);
if (ONENAND_IS_2PLANE(this)) {
/* Make the even block number */
block &= ~1;
Expand Down

0 comments on commit 87f04ea

Please sign in to comment.