]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/85xx: Fix compile errors if CONFIG_SYS_{BR,OR}0_PRELIM aren't set
authorKumar Gala <galak@kernel.crashing.org>
Fri, 20 May 2011 05:54:39 +0000 (00:54 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 11 Jul 2011 18:24:19 +0000 (13:24 -0500)
Add ifdef protection in LBC code to handle the case in which
CONFIG_SYS_BR0_PRELIM and CONFIG_SYS_OR0_PRELIM arent defined for a
build.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c

index 7598ebf4574c9d2e943bb95ddbc975ab97c659b5..d78962ff8734414b77a24b92941e8e3a20dec2c8 100644 (file)
@@ -58,8 +58,10 @@ void init_early_memctl_regs(void)
 #endif
        /* now restrict to preliminary range */
        if (init_br1) {
+#if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
                set_lbc_br(0, CONFIG_SYS_BR0_PRELIM);
                set_lbc_or(0, CONFIG_SYS_OR0_PRELIM);
+#endif
 
 #if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
                set_lbc_or(1, CONFIG_SYS_OR1_PRELIM);