summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-02-05 11:25:57 +0100
committerStefan Roese <sr@denx.de>2009-02-05 11:25:57 +0100
commitec21d5cfcb6b4e7fcdd5c6e926e1a824900706f2 (patch)
tree28c454a1cc16ea8f910df57896cdb68d669e2b0a
parent09ce9921a7d8b1ce764656b14b42217bbf4faa38 (diff)
downloadtalos-obmc-uboot-ec21d5cfcb6b4e7fcdd5c6e926e1a824900706f2.tar.gz
talos-obmc-uboot-ec21d5cfcb6b4e7fcdd5c6e926e1a824900706f2.zip
cfi_flash: Silence compilation warning
Patch "flash/cfi_flash: Use virtual sector start address, not phys" introduced a small compilation warning. This patch fixes it. Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--drivers/mtd/cfi_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 4cb5fb52e4..3a8f8e42e2 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -879,7 +879,7 @@ static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp,
int cnt;
int retcode;
void *src = cp;
- void *dst = dest;
+ void *dst = (void *)dest;
void *dst2 = dst;
int flag = 0;
uint offset = 0;
OpenPOWER on IntegriCloud