Commit c56aa9a6 authored by Sam Edwards's avatar Sam Edwards Committed by Will Deacon
Browse files

arm64: mm: Make map_fdt() return mapped pointer



Currently map_fdt() accepts a physical address and relies on the caller
to keep using the same value after mapping, since the implementation
happens to install an identity mapping. This obscures the fact that the
usable pointer is defined by the mapping, not by the input value. Since
the mapping determines pointer validity, it is more natural to produce
the pointer at mapping time.

Change map_fdt() to return a void * pointing to the mapped FDT. This
clarifies the data flow, removes the implicit identity assumption, and
prepares for making map_fdt() accept a phys_addr_t in a follow-up
change.

Signed-off-by: default avatarSam Edwards <CFSworks@gmail.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 030b3ffb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment