From: Michal Simek Date: Tue, 16 Apr 2019 11:49:54 +0200 Subject: [U-Boot] [PATCH] arm64: zynqmp: fix preprocessor check for SPL_ZYNQMP_TWO_SDHCI In-Reply-To: <20190415141818.25146-1-luca@lucaceresoli.net> References: <20190415141818.25146-1-luca@lucaceresoli.net> Message-ID: <56d5857e-3a5a-0102-20ba-b413f5a47eff@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 15. 04. 19 16:18, Luca Ceresoli wrote: > 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 > --- > arch/arm/mach-zynqmp/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-zynqmp/spl.c b/arch/arm/mach-zynqmp/spl.c > index f6f5414201b5..b7d2ecdf7257 100644 > --- a/arch/arm/mach-zynqmp/spl.c > +++ b/arch/arm/mach-zynqmp/spl.c > @@ -85,7 +85,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 > Nice catch. Applied. Thanks, Michal