of/fdt: Remove custom __early_init_dt_declare_initrd() implementation
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 5 Nov 2018 22:54:30 +0000 (14:54 -0800)
committerRob Herring <robh@kernel.org>
Mon, 26 Nov 2018 21:50:39 +0000 (15:50 -0600)
commitcdbc848b03414c75b7badccd8ada29deba7ec6e4
tree651176bc2b4a59a7efa042bb6a6db8aad7b7123c
parentc756c592e442ba101c91daed3524ba5b3a784ba6
of/fdt: Remove custom __early_init_dt_declare_initrd() implementation

Now that ARM64 uses phys_initrd_start/phys_initrd_size, we can get rid
of its custom __early_init_dt_declare_initrd() which causes a fair
amount of objects rebuild when changing CONFIG_BLK_DEV_INITRD. In order
to make sure ARM64 does not produce a BUG() when VM debugging is turned
on though, we must avoid early calls to __va() which is what
__early_init_dt_declare_initrd() does and wrap this around to avoid
running that code on ARM64.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
arch/arm64/include/asm/memory.h
drivers/of/fdt.c