]> git.baikalelectronics.ru Git - uboot.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)
commit798e2a262156abed52d69bacdcdc1456f07dd8ee
tree6edcb0d2fa5ed61611427d881c07f04e9bbab8dc
parent9fe14a20c36a795c462f2bb48634892cde6f6434
CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

Since commit 496892aefcbb ("configs: Migrate CONFIG_NR_DRAM_BANKS") &
commit dfc3221bdfd2 ("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