On Fri, 24 Jul 2020 at 08:54, Stefan Roese <[email protected]> wrote: > > 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 <[email protected]> > Cc: Tom Rini <[email protected]> > Cc: Ramon Fried <[email protected]> > Cc: Simon Glass <[email protected]> > Cc: Michal Simek <[email protected]> > --- > arch/x86/cpu/broadwell/cpu_from_spl.c | 2 -- > board/xilinx/zynqmp/zynqmp.c | 2 -- > cmd/bdinfo.c | 2 -- > common/board_f.c | 6 +----- > common/image.c | 3 +-- > common/init/handoff.c | 4 ---- > drivers/pci/pci-uclass.c | 17 +---------------- > include/asm-generic/u-boot.h | 2 -- > include/handoff.h | 2 -- > lib/fdtdec.c | 5 ----- > lib/lmb.c | 7 ------- > 11 files changed, 3 insertions(+), 49 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

