Message ID | 1318454918-24094-1-git-send-email-vapier@gentoo.org |
---|---|
State | Accepted |
Commit | 1f6734cf502586d758b0569f5d921b71277688bd |
Delegated to: | Anatolij Gustschin |
Headers | show |
On Wed, 12 Oct 2011 17:28:38 -0400 Mike Frysinger <vapier@gentoo.org> wrote: > From: Vadim Bendebury <vbendeb@chromium.org> > > We want to show the length, so multiplying by sector size makes no sense. > This is a hold over from the erase code before the big refactor. > > Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> > Signed-off-by: Mike Frysinger <vapier@gentoo.org> > --- > drivers/mtd/spi/spi_flash.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) Applied to u-boot-staging/agust@denx.de. Thanks! Anatolij
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index ced4c94..f689cc4 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -233,8 +233,7 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u8 erase_cmd, goto out; } - debug("SF: Successfully erased %zu bytes @ %#x\n", - len * erase_size, start); + debug("SF: Successfully erased %zu bytes @ %#x\n", len, start); out: spi_release_bus(flash->spi);