diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-03-24 22:14:02 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2016-04-12 15:06:27 -0400 |
commit | 3137b716568f3ca8ca575fd13b91ddb42abd6844 (patch) | |
tree | 575aeca3738b65df7955c45ca35281053ac13279 | |
parent | 309fdeb55723fecf17e43367d0918b2fb3fd18d6 (diff) |
ARM: uniphier: drop weird sizeof()
My intention was to ioremap a 4-byte register. Coincidentally enough,
sizeof(SZ_4) equals to SZ_4, but this code is weird anyway.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/mach-uniphier/platsmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/platsmp.c b/arch/arm/mach-uniphier/platsmp.c index 69141357afe8..db04142f88bc 100644 --- a/arch/arm/mach-uniphier/platsmp.c +++ b/arch/arm/mach-uniphier/platsmp.c | |||
@@ -120,7 +120,7 @@ static int __init uniphier_smp_prepare_trampoline(unsigned int max_cpus) | |||
120 | if (ret) | 120 | if (ret) |
121 | return ret; | 121 | return ret; |
122 | 122 | ||
123 | uniphier_smp_rom_boot_rsv2 = ioremap(rom_rsv2_phys, sizeof(SZ_4)); | 123 | uniphier_smp_rom_boot_rsv2 = ioremap(rom_rsv2_phys, SZ_4); |
124 | if (!uniphier_smp_rom_boot_rsv2) { | 124 | if (!uniphier_smp_rom_boot_rsv2) { |
125 | pr_err("failed to map ROM_BOOT_RSV2 register\n"); | 125 | pr_err("failed to map ROM_BOOT_RSV2 register\n"); |
126 | return -ENOMEM; | 126 | return -ENOMEM; |