diff options
| author | Rob Herring <[email protected]> | 2018-01-05 21:32:33 +0000 |
|---|---|---|
| committer | Rob Herring <[email protected]> | 2018-01-08 14:24:34 +0000 |
| commit | 0fa1c579349fdd90173381712ad78aa99c09d38b (patch) | |
| tree | 75cb0dbfbfad3df504ed14d52cca36a84683478b /fs/jbd2/commit.c | |
| parent | of: Use SPDX license tag for DT files (diff) | |
| download | kernel-0fa1c579349fdd90173381712ad78aa99c09d38b.tar.gz kernel-0fa1c579349fdd90173381712ad78aa99c09d38b.zip | |
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 <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
