of/fdt: factor out assignment of initrd_start/initrd_end
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 16 Feb 2016 12:52:33 +0000 (13:52 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 18 Feb 2016 18:15:39 +0000 (18:15 +0000)
commit369bc9abf22bf026e8645a4dd746b90649a2f6ee
tree26599512eae7696288b8b6fb31f9e77d65039593
parent270522a04f7a9911983878fa37da467f9ff1c938
of/fdt: factor out assignment of initrd_start/initrd_end

Since architectures may not yet have their linear mapping up and running
when the initrd address is discovered from the DT, factor out the
assignment of initrd_start and initrd_end, so that an architecture can
override it and use the translation it needs.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/of/fdt.c