Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145093
b: refs/heads/master
c: dbf8c11
h: refs/heads/master
i:
  145091: 5fea2af
v: v3
  • Loading branch information
Peter Korsgaard authored and Linus Torvalds committed May 18, 2009
1 parent 5d7d181 commit 47e0c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: bac9caf016bf147af7d3afbe7580a7f773cb1566
refs/heads/master: dbf8c11f821b6ff83302c34f2403b4f7231f50ae
2 changes: 1 addition & 1 deletion trunk/drivers/mtd/devices/mtd_dataflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr)
/* Calculate flash page address; use block erase (for speed) if
* we're at a block boundary and need to erase the whole block.
*/
pageaddr = div_u64(instr->len, priv->page_size);
pageaddr = div_u64(instr->addr, priv->page_size);
do_block = (pageaddr & 0x7) == 0 && instr->len >= blocksize;
pageaddr = pageaddr << priv->page_offset;

Expand Down

0 comments on commit 47e0c7a

Please sign in to comment.