diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2019-04-15 16:18:18 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-04-16 11:52:02 +0200 |
commit | 350cfe79a8fb288e9066d5668af7c5ab6857edea (patch) | |
tree | f6e0226c1a537ce135132549411d7c81c3377556 /arch/arm/mach-zynqmp | |
parent | cc9f55e241c3d50ffcdb076abbf5a7a47e96c4fb (diff) | |
download | u-boot-350cfe79a8fb288e9066d5668af7c5ab6857edea.tar.gz |
arm64: zynqmp: fix preprocessor check for SPL_ZYNQMP_TWO_SDHCI
A missing CONFIG_ prefix while checking for this Kconfig variable makes the
check always fail. Fix it. While there also switch from the '#if defined'
form to the '#ifdef' form as the other checks in this function.
Fixes: 35e2b92344b1 ("arm64: zynqmp: Fix logic around CONFIG_ZYNQ_SDHCI")
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynqmp')
-rw-r--r-- | arch/arm/mach-zynqmp/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-zynqmp/spl.c b/arch/arm/mach-zynqmp/spl.c index f95a264230..b52ac17853 100644 --- a/arch/arm/mach-zynqmp/spl.c +++ b/arch/arm/mach-zynqmp/spl.c @@ -86,7 +86,7 @@ u32 spl_boot_device(void) case SD_MODE1: case SD1_LSHFT_MODE: /* not working on silicon v1 */ /* if both controllers enabled, then these two are the second controller */ -#if defined(SPL_ZYNQMP_TWO_SDHCI) +#ifdef CONFIG_SPL_ZYNQMP_TWO_SDHCI return BOOT_DEVICE_MMC2; /* else, fall through, the one SDHCI controller that is enabled is number 1 */ #endif |