From: Felix Brack Date: Wed, 11 Oct 2017 15:05:28 +0000 (+0200) Subject: mmc: sanitize includes for DM i2c X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=339d578900edb03b633b3de4dad3da0aea2c1b15;p=u-boot.git mmc: sanitize includes for DM i2c This patch fixes some warnings when building boards that do not define DM_I2C_COMPAT i.e. boards that entirely rely on the new i2c layer. Signed-off-by: Felix Brack --- diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index efa43896fc..30443d13a0 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -28,9 +28,9 @@ #include #include #include -#include -#include +#if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX) #include +#endif #include #include #if !defined(CONFIG_SOC_KEYSTONE)