Revert "cfi_flash: Use uintptr_t for casts from u32 to void *"
authorStefan Roese <sr@denx.de>
Fri, 12 Apr 2013 17:04:37 +0000 (19:04 +0200)
committerStefan Roese <sr@denx.de>
Fri, 12 Apr 2013 17:04:37 +0000 (19:04 +0200)
This reverts commit 81a4f7098ba137ea1961cb997ca16d57de2b3483.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c

index cf10b0d4ca4af366ab2576aae41c77bf4a258225..328c76d2965d50baa8cfbeef23510a6d37631bcd 100644 (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,