From: Marek Vasut Date: Sun, 20 Dec 2015 03:00:45 +0000 (+0100) Subject: arm: socfpga: Enable DFU MMC support only if DM_MMC is enabled X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=eba522a0f7e0bae819633977aa9ad905775a1b68;p=u-boot.git arm: socfpga: Enable DFU MMC support only if DM_MMC is enabled It is not possible to compile DFU MMC support if the MMC support is not compiled into U-Boot. Secure the code with an ifdef to prevent compiler splat. Signed-off-by: Marek Vasut Cc: Dinh Nguyen Cc: Chin Liang See --- diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index ff7a3005a5..2d1765d742 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -248,7 +248,9 @@ unsigned int cm_get_qspi_controller_clk_hz(void); #define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_USB_FUNCTION_DFU +#ifdef CONFIG_DM_MMC #define CONFIG_DFU_MMC +#endif #define CONFIG_SYS_DFU_DATA_BUF_SIZE (32 * 1024 * 1024) #define DFU_DEFAULT_POLL_TIMEOUT 300