From: Marek Vasut Date: Sun, 20 Dec 2015 04:00:44 +0100 Subject: [U-Boot] [PATCH 4/6] arm: socfpga: Enable SPL MMC/SPI support only if DM_MMC/SPI is enabled In-Reply-To: <1450580446-6435-1-git-send-email-marex@denx.de> References: <1450580446-6435-1-git-send-email-marex@denx.de> Message-ID: <1450580446-6435-4-git-send-email-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de It is not possible to compile MMC/SPI SPL if the respective DM_MMC/DM_SPI bits are not enabled. Secure the code with an ifdef to prevent compiler splat. Signed-off-by: Marek Vasut Cc: Dinh Nguyen Cc: Chin Liang See --- include/configs/socfpga_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 3a4df63..3d46330 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -294,8 +294,12 @@ unsigned int cm_get_qspi_controller_clk_hz(void); #define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_WATCHDOG_SUPPORT #define CONFIG_SPL_SERIAL_SUPPORT +#ifdef CONFIG_DM_MMC #define CONFIG_SPL_MMC_SUPPORT +#endif +#ifdef CONFIG_DM_SPI #define CONFIG_SPL_SPI_SUPPORT +#endif /* SPL SDMMC boot support */ #ifdef CONFIG_SPL_MMC_SUPPORT -- 2.1.4