]> git.dujemihanovic.xyz Git - u-boot.git/commit
CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined
authorStefan Roese <sr@denx.de>
Wed, 12 Aug 2020 09:55:46 +0000 (11:55 +0200)
committerStefan Roese <sr@denx.de>
Wed, 26 Aug 2020 07:19:16 +0000 (09:19 +0200)
commitdfaf6a57974f5b4bcdc2a2a347b192573ffb5135
tree6edcb0d2fa5ed61611427d881c07f04e9bbab8dc
parent9f9ecd3e4d7839e24c182fb7b24937e19b670f1b
CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") &
commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"),
CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default).
It makes no sense to still carry code that is guarded with
"#ifndef CONFIG_NR_DRAM_BANKS" (and similar). This patch removes
all these unreferenced code paths.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/broadwell/cpu_from_spl.c
board/xilinx/zynqmp/zynqmp.c
cmd/bdinfo.c
common/board_f.c
common/image.c
common/init/handoff.c
drivers/pci/pci-uclass.c
include/asm-generic/u-boot.h
include/handoff.h
lib/fdtdec.c
lib/lmb.c