Skip to contentSkip to conversation

mmc: sanitize includes for DM i2c

PATCH New Felix Brack 2 participants 2 messages Oct 11, 2017 – Nov 27, 2017 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 drivers/mmc/omap_hsmmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/omap_hsmmc.c +2 -2
index efa4389..30443d1 100644
@@ -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)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mmc: sanitize includes for DM i2c

Quoted 3 lines · Felix Brack

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.

Applied to u-boot-mmc. Sorry for late.

Best Regards,
Jaehoon Chung

Quoted 22 lines

---

 drivers/mmc/omap_hsmmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/omap_hsmmc.c +2 -2
index efa4389..30443d1 100644
@@ -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)