[PATCH 5/5] sunxi-common.h: remove pointless #ifdefs
Simon Glass
sjg at chromium.org
Thu Jan 27 16:41:18 CET 2022
On Mon, 24 Jan 2022 at 18:15, Andre Przywara <andre.przywara at arm.com> wrote:
>
> Remove some pointless #ifdefs from this file, as there are quite too
> many of them already.
>
> Some definitions don't really hurt to have in any case, so remove the
> pointless CONFIG_MMC guard around CONFIG_MMC_SUNXI_SLOT.
>
> The BOARD_SIZE_LIMIT applies regardless of ARM64 or not (now), so remove
> that guard as well. The maximum number of MMC devices does not depend on
> CONFIG_ENV_IS_IN_MMC, so move that out to simplify the file.
>
> Last but not least CONFIG_SPL_BOARD_LOAD_IMAGE serves no real purpose
> anymore: it's unconditionally defined for all sunxi boards, and protects
> nothing applicable outside of sunxi code anymore. Just remove it.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> ---
> include/configs/sunxi-common.h | 7 -------
> 1 file changed, 7 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
Tested on: orangepi_pc2, orangepi_pc, A20-OLinuXino_MICRO
Tested-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list