linux/drivers/of
Rob Herring 0fa1c57934 of/fdt: use memblock_virt_alloc for early alloc
memblock_virt_alloc() works for both memblock and bootmem, so use it and
make early_init_dt_alloc_memory_arch a static function. The arches using
bootmem define early_init_dt_alloc_memory_arch as either:

__alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS))

or:

alloc_bootmem_align(size, align)

Both of these evaluate to the same thing as does memblock_virt_alloc for
bootmem. So we can disable the arch specific functions by making
early_init_dt_alloc_memory_arch static and they can be removed in
subsequent commits.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
2018-01-08 08:24:34 -06:00
..
unittest-data of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
address.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
base.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
device.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
dynamic.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
fdt_address.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
fdt.c of/fdt: use memblock_virt_alloc for early alloc 2018-01-08 08:24:34 -06:00
irq.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
Kconfig of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
kobj.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
Makefile DeviceTree for 4.15: 2017-11-14 18:25:40 -08:00
of_mdio.c of_mdio: Fix broken PHY IRQ in case of probe deferral 2017-10-22 03:20:25 +01:00
of_net.c of_net: factor out repetitive code from of_get_mac_address() 2015-03-29 08:56:17 +01:00
of_numa.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
of_pci_irq.c OF/PCI: Update of_irq_parse_and_map_pci() comment 2017-07-02 16:14:28 -05:00
of_pci.c of/pci: Fix theoretical NULL dereference 2017-11-16 11:01:14 -06:00
of_private.h of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
of_reserved_mem.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
overlay.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
pdt.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
platform.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
property.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
resolver.c of: Use SPDX license tag for DT files 2018-01-08 08:22:45 -06:00
unittest.c of/fdt: use memblock_virt_alloc for early alloc 2018-01-08 08:24:34 -06:00