]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sanitize includes for DM i2c
authorFelix Brack <fb@ltec.ch>
Wed, 11 Oct 2017 15:05:28 +0000 (17:05 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 12 Jan 2018 09:11:03 +0000 (18:11 +0900)
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 <fb@ltec.ch>
drivers/mmc/omap_hsmmc.c

index efa43896fcebc5207dbd264e09867fb88869d808..30443d13a09127b02234a6e93db9fb52af9417eb 100644 (file)
@@ -28,9 +28,9 @@
 #include <mmc.h>
 #include <part.h>
 #include <i2c.h>
-#include <twl4030.h>
-#include <twl6030.h>
+#if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX)
 #include <palmas.h>
+#endif
 #include <asm/io.h>
 #include <asm/arch/mmc_host_def.h>
 #if !defined(CONFIG_SOC_KEYSTONE)