]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: Enable DFU MMC support only if DM_MMC is enabled
authorMarek Vasut <marex@denx.de>
Sun, 20 Dec 2015 03:00:45 +0000 (04:00 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 22 Dec 2015 20:30:02 +0000 (21:30 +0100)
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 <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
include/configs/socfpga_common.h

index ff7a3005a582e423f1f9a33d3ace96efbb499350..2d1765d7421b4488d1818d70c729c36228802406 100644 (file)
@@ -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