diff options
author | Stefan Roese <sr@denx.de> | 2013-04-12 19:04:37 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2013-04-12 19:04:37 +0200 |
commit | b9589ec1a3cd789d09ad0594db82f4140756cf2e (patch) | |
tree | 834a531f802e91ad59f2131b7d0f9583168dc9a9 /drivers/mtd | |
parent | 785881f775252940185e10fbb2d5299c9ffa6bce (diff) | |
download | u-boot-b9589ec1a3cd789d09ad0594db82f4140756cf2e.tar.gz u-boot-b9589ec1a3cd789d09ad0594db82f4140756cf2e.tar.bz2 u-boot-b9589ec1a3cd789d09ad0594db82f4140756cf2e.zip |
Revert "cfi_flash: Use uintptr_t for casts from u32 to void *"
This reverts commit 81a4f7098ba137ea1961cb997ca16d57de2b3483.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/cfi_flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index cf10b0d4ca..328c76d296 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -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, |