mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
of: consolidate definition of early_init_dt_alloc_memory_arch()
Most architectures use the same implementation. Collapse the common ones into a single weak function that can be overridden. Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
7e0bdf15ce
commit
a1727da599
7 changed files with 12 additions and 31 deletions
|
|
@ -45,8 +45,3 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
|
|||
{
|
||||
c6x_add_memory(base, size);
|
||||
}
|
||||
|
||||
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
|
||||
{
|
||||
return __va(memblock_alloc(size, align));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue