From: Michal Simek Date: Tue, 9 Jan 2018 13:49:28 +0000 (+0100) Subject: arm: zynq: Enable DM_ETH and DM_MMC only if subsystem is enabled X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c4a142f4a69c9fc7d9d976efc7f09d2447536d1e;p=u-boot.git arm: zynq: Enable DM_ETH and DM_MMC only if subsystem is enabled Do not enable DM_ETH/MMC if subsystems are not enabled. This saves memory for memory constrained boards like cse. Signed-off-by: Michal Simek --- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1a4cf1ec97..7258235da1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -779,10 +779,10 @@ config ARCH_ZYNQ select SPL_BOARD_INIT if SPL select SPL_OF_CONTROL if SPL select DM - select DM_ETH + select DM_ETH if NET select DM_GPIO select SPL_DM if SPL - select DM_MMC + select DM_MMC if MMC select DM_SPI select DM_SERIAL select DM_SPI_FLASH