summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-uniphier/micro-support-card.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-26 18:59:45 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2016-03-01 00:33:29 +0900
commit11d3ede42ceccef9b5941ea7907f398cb97ed361 (patch)
tree3575c69b10b42f3eadc4f1fb5fe6ae4fa482a896 /arch/arm/mach-uniphier/micro-support-card.c
parentfe5ea57bdbdeb8429793faaca2d6bd5f38218fe3 (diff)
downloadtalos-obmc-uboot-11d3ede42ceccef9b5941ea7907f398cb97ed361.tar.gz
talos-obmc-uboot-11d3ede42ceccef9b5941ea7907f398cb97ed361.zip
ARM: uniphier: fix warnings reported by aarch64 compiler
The UniPhier SoC family has not supported ARMv8 yet, but these would cause warnings if they were compiled with a 64bit compiler. Before adding the ARMv8 support really, fix them now. Because UniPhier SoCs do not support Large Physical Address Extension, casting "phys_addr_t" into "unsigned long" would carry the address as is. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/micro-support-card.c')
-rw-r--r--arch/arm/mach-uniphier/micro-support-card.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/micro-support-card.c b/arch/arm/mach-uniphier/micro-support-card.c
index f777ac1ffe..f7a37e3e4c 100644
--- a/arch/arm/mach-uniphier/micro-support-card.c
+++ b/arch/arm/mach-uniphier/micro-support-card.c
@@ -142,7 +142,8 @@ static void detect_num_flash_banks(void)
memory_bank;
debug("flash bank found: base = 0x%lx, size = 0x%lx\n",
- memory_bank->base, memory_bank->size);
+ (unsigned long)memory_bank->base,
+ (unsigned long)memory_bank->size);
cfi_flash_num_flash_banks++;
}
}
OpenPOWER on IntegriCloud