From: Tom Rini Date: Fri, 7 Aug 2020 15:21:58 -0400 Subject: [PATCH v2] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined In-Reply-To: <20200730105110.2848375-1-sr@denx.de> References: <20200730105110.2848375-1-sr@denx.de> Message-ID: <20200807192158.GA28426@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 30, 2020 at 12:51:10PM +0200, Stefan Roese 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. > > Also complete remove bi_memstart & bi_memsize from the board-info > struct. As now bi_dram[] is always enabled and should be used instead. > This removes the redundant varriables. > > Signed-off-by: Stefan Roese > Cc: Daniel Schwierzeck > Cc: Tom Rini > Cc: Ramon Fried > Cc: Simon Glass > Cc: Michal Simek > Reviewed-by: Daniel Schwierzeck I don't see quite how, but this is breaking running test/nokia_rx51_test.sh (or, my fixup of this to apply to current master was wrong, and is what's breaking the test). Please rebase and confirm that test passes as well, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: