diff options
author | Stefan Roese <sr@denx.de> | 2009-02-05 11:44:52 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2009-02-05 11:44:52 +0100 |
commit | e1fb6d0d52fbe3fbc1a4c651dacf11e9c1417f63 (patch) | |
tree | 54647323ee7fc387b233622114c896f03238fd2a /drivers/mtd/cfi_flash.c | |
parent | 28745db969b72693754991c838f68a7fb4a8b1ab (diff) |
cfi_flash: Fix typo in cfi_flash.c
Patch "flash/cfi_flash: Use virtual sector start address, not phys"
introduced a small typo and compilation warning for systems with CFI
legacy support (e.g. hcu4). This patch fixes it.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd/cfi_flash.c')
-rw-r--r-- | drivers/mtd/cfi_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 3a8f8e42e2..bdfad98244 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1622,7 +1622,7 @@ static int flash_detect_legacy(phys_addr_t base, int banknum) info->vendor = modes[i]; info->start[0] = (ulong)map_physmem(base, - info->portwith, + info->portwidth, MAP_NOCACHE); if (info->portwidth == FLASH_CFI_8BIT && info->interface == FLASH_CFI_X8X16) { @@ -1640,7 +1640,7 @@ static int flash_detect_legacy(phys_addr_t base, int banknum) if (jedec_flash_match(info, info->start[0])) break; else - unmap_physmem(info->start[0], + unmap_physmem((void *)info->start[0], MAP_NOCACHE); } } |