Skip to content
  • Rob Herring's avatar
    sh: switch to NO_BOOTMEM · ac21fc2d
    Rob Herring authored
    Commit 0fa1c579 ("of/fdt: use memblock_virt_alloc for early alloc")
    inadvertently switched the DT unflattening allocations from memblock to
    bootmem which doesn't work because the unflattening happens before
    bootmem is initialized. Swapping the order of bootmem init and
    unflattening could also fix this, but removing bootmem is desired. So
    enable NO_BOOTMEM on SH like other architectures have done.
    
    Fixes: 0fa1c579
    
     ("of/fdt: use memblock_virt_alloc for early alloc")
    Reported-by: default avatarRich Felker <dalias@libc.org>
    Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    Signed-off-by: default avatarRich Felker <dalias@libc.org>
    ac21fc2d