summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-02-09 13:41:28 -0500
committerTom Rini <trini@konsulko.com>2017-02-09 13:41:28 -0500
commit2a48b3a2c4ec0f1775deeac5cfe7e61072b6b894 (patch)
treeed8f36e335c1a91860f4372ab173c2bb254df342 /drivers
parente1a71f8b339220fa74c9cd5d36ae9c444c492e83 (diff)
downloadu-boot-imx-2a48b3a2c4ec0f1775deeac5cfe7e61072b6b894.zip
u-boot-imx-2a48b3a2c4ec0f1775deeac5cfe7e61072b6b894.tar.gz
u-boot-imx-2a48b3a2c4ec0f1775deeac5cfe7e61072b6b894.tar.bz2
omap_hsmmc.c: Fix build warning on non-omap3
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 <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/omap_hsmmc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index b63ce56..7ed5328 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -37,8 +37,10 @@
#include <asm/gpio.h>
#include <asm/arch/sys_proto.h>
#endif
+#ifdef CONFIG_MMC_OMAP36XX_PINS
+#include <asm/arch/mux.h>
+#endif
#include <dm.h>
-#include <asm/arch-omap3/mux.h>
DECLARE_GLOBAL_DATA_PTR;