Skip to content

Commit

Permalink
ARM: uniphier: drop weird sizeof()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
  • Loading branch information
masahir0y authored and olofj committed Apr 12, 2016
1 parent 309fdeb commit 3137b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-uniphier/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int __init uniphier_smp_prepare_trampoline(unsigned int max_cpus)
if (ret)
return ret;

uniphier_smp_rom_boot_rsv2 = ioremap(rom_rsv2_phys, sizeof(SZ_4));
uniphier_smp_rom_boot_rsv2 = ioremap(rom_rsv2_phys, SZ_4);
if (!uniphier_smp_rom_boot_rsv2) {
pr_err("failed to map ROM_BOOT_RSV2 register\n");
return -ENOMEM;
Expand Down

0 comments on commit 3137b71

Please sign in to comment.