diff --git a/arch/arm/cpu/arm926ejs/davinci/spl.c b/arch/arm/cpu/arm926ejs/davinci/spl.c index 20f798e0df..f475f9ba75 100644 --- a/arch/arm/cpu/arm926ejs/davinci/spl.c +++ b/arch/arm/cpu/arm926ejs/davinci/spl.c @@ -29,13 +29,14 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT +DECLARE_GLOBAL_DATA_PTR; /* Define global data structure pointer to it*/ static gd_t gdata __attribute__ ((section(".data"))); static bd_t bdata __attribute__ ((section(".data"))); -#ifndef CONFIG_SPL_LIBCOMMON_SUPPORT +#else void puts(const char *str) {