summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-07-31 19:55:10 -0400
committerTom Rini <trini@konsulko.com>2015-08-12 20:48:07 -0400
commitb5d92ba1ad97c06985ebc689e1ac1462a146832d (patch)
treeef811c229228b414d8d76fba22da3d58ed70ffce /arch/arm/lib
parent0a9e34056fcf86fb64e70bd281875eb7bbdbabde (diff)
downloadtalos-obmc-uboot-b5d92ba1ad97c06985ebc689e1ac1462a146832d.tar.gz
talos-obmc-uboot-b5d92ba1ad97c06985ebc689e1ac1462a146832d.zip
ARM: SPL: Use CONFIG_SPL_DM not CONFIG_DM
We now have the CONFIG_SPL_DM for code within SPL to toggle caring about DM or not. Without this change platforms that do enable CONFIG_DM but not CONFIG_SPL_DM may be broken (such as OMAP5). Cc: Albert Aribaud <albert.u.boot@aribaud.net> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/spl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index bd8c7d2ede..d737a5cce8 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -13,7 +13,7 @@
#include <image.h>
#include <linux/compiler.h>
-#ifndef CONFIG_DM
+#ifndef CONFIG_SPL_DM
/* Pointer to as well as the global data structure for SPL */
DECLARE_GLOBAL_DATA_PTR;
@@ -35,7 +35,7 @@ void __weak board_init_f(ulong dummy)
/* Clear the BSS. */
memset(__bss_start, 0, __bss_end - __bss_start);
-#ifndef CONFIG_DM
+#ifndef CONFIG_SPL_DM
/* TODO: Remove settings of the global data pointer here */
gd = &gdata;
#endif
OpenPOWER on IntegriCloud