[U-Boot] mmc: sanitize includes for DM i2c

Message ID 1507734328-9622-1-git-send-email-fb@ltec.ch
State Accepted
Delegated to: Jaehoon Chung
Headers show
Series
  • [U-Boot] mmc: sanitize includes for DM i2c
Related show

Commit Message

Felix Brack Oct. 11, 2017, 3:05 p.m.
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jaehoon Chung Nov. 27, 2017, 7:38 a.m. | #1
On 10/12/2017 12:05 AM, Felix Brack wrote:
> 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>

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

Best Regards,
Jaehoon Chung

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

Patch

diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index efa4389..30443d1 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -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)