of/fdt: avoid re-parsing '#{address,size}-cells' in of_fdt_limit_memory
authorRob Herring <robh@kernel.org>
Thu, 30 Aug 2018 16:20:20 +0000 (11:20 -0500)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 31 May 2024 13:33:54 +0000 (08:33 -0500)
commit596c29f3c8dea8b6ea74b930a03a693ad47819e3
tree9f2afce9be078fc4ca849ecbac5ac8d995ea9a3a
parent554b66233623efd7a029135d355aeb2b7c8eb527
of/fdt: avoid re-parsing '#{address,size}-cells' in of_fdt_limit_memory

Now that we initialize dt_root_addr_cells and dt_root_size_cells earlier,
use them and simplify of_fdt_limit_memory.

Link: https://lore.kernel.org/all/20180830190523.31474-3-robh@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c