mtd_dataflash: unbreak erase support
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 May 2009 10:13:54 +0000 (11:13 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 May 2009 15:36:21 +0000 (08:36 -0700)
commitdbf8c11f821b6ff83302c34f2403b4f7231f50ae
treeba637dc39a49ae0dce4430b44b07d2f7638d5fd2
parentbac9caf016bf147af7d3afbe7580a7f773cb1566
mtd_dataflash: unbreak erase support

Commit 5b7f3a50 (fix dataflash 64-bit divisions) unfortunately
introduced a typo. Erase addr and len were swapped in the pageaddr
calculation, causing the wrong sectors to get erased.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mtd/devices/mtd_dataflash.c