Revert "cfi_flash: Use uintptr_t for casts from u32 to void *"

This reverts commit 81a4f7098b.

Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Stefan Roese 2013-04-12 19:04:37 +02:00
parent 785881f775
commit b9589ec1a3
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ flash_map (flash_info_t * info, flash_sect_t sect, uint offset)
unsigned int addr = (info->start[sect] + byte_offset);
unsigned int mask = 0xffffffff << (info->portwidth - 1);
return (void *)(uintptr_t)(addr & mask);
return (void *)(addr & mask);
}
static inline void flash_unmap(flash_info_t *info, flash_sect_t sect,