of/fdt: Clean up early_init_dt_reserve_memory_arch()
authorPeter Collingbourne <pcc@google.com>
Sat, 23 Jul 2022 01:53:31 +0000 (18:53 -0700)
committerRob Herring <robh@kernel.org>
Mon, 25 Jul 2022 19:58:03 +0000 (13:58 -0600)
commitf8a855ed8d07f6f11c6b0d6a692f0220c64f8c21
tree4e94e32ba484f112583200007d7ff8045625cb2d
parentfba4866241e07f8f545b3dcc72fbbadde485530d
of/fdt: Clean up early_init_dt_reserve_memory_arch()

As of commit 18250b43f7b6 ("of: fdt: Remove
early_init_dt_reserve_memory_arch() override capability") this is
no longer an arch hook, so rename it to remove the confusing _arch
suffix. Also remove some unnecessary indirection from all but one of
the callers by calling memblock_reserve() directly instead.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Link: https://linux-review.googlesource.com/id/I3362bdd92ae6e47e8f5bac01aa228d32f9d01aad
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220723015331.1607029-1-pcc@google.com
drivers/of/fdt.c