From: Tom Rini Date: Thu, 9 Feb 2017 13:45:12 -0500 Subject: [U-Boot] [PATCH] omap_hsmmc.c: Fix build warning on non-omap3 Message-ID: <1486665912-29107-1-git-send-email-trini@konsulko.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de It was incorrect to always include "asm/arch-omap3/mux.h" constantly. This introduced warnings on non-omap3 where certain values will conflict between the various families. Conditionally guard the inclusion in order to correct the problem. Fixes: 6aca17c9b7e8 ("drivers: mmc: omap_hsmmc: Fix IO Buffer on OMAP36xx") Signed-off-by: Tom Rini --- drivers/mmc/omap_hsmmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index b63ce565f2bf..7ed532843bca 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -37,8 +37,10 @@ #include #include #endif +#ifdef CONFIG_MMC_OMAP36XX_PINS +#include +#endif #include -#include DECLARE_GLOBAL_DATA_PTR; -- 1.9.1