riscv: Simplify BUILTIN_DTB device tree mapping handling
authorAlexandre Ghiti <alex@ghiti.fr>
Fri, 23 Jul 2021 13:01:27 +0000 (15:01 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 12 Aug 2021 05:41:34 +0000 (22:41 -0700)
commit977765ce319b98939205cf07aa1d76150713c69b
treed7236c7a09402079493d3c6d857f38651ac99e73
parent6f3e5fd241c33d2407f7aaa930b141af6ad7c35b
riscv: Simplify BUILTIN_DTB device tree mapping handling

__PAGETABLE_PMD_FOLDED defines a 2-level page table that is only used in
32-bit kernel, so there is no need to check for CONFIG_64BIT in #ifndef
__PAGETABLE_PMD_FOLDED and vice-versa.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c