summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-05-20 00:54:39 -0500
committerKumar Gala <galak@kernel.crashing.org>2011-07-11 13:24:19 -0500
commit9829feffec9c8c7a1d25da1dae54f0fea080f7a2 (patch)
tree66b66e39c949902e9b62e0980184ac73d87b65c2 /arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
parentbe1ff615eac1e323f67b3197390369c398ea4491 (diff)
downloadtalos-obmc-uboot-9829feffec9c8c7a1d25da1dae54f0fea080f7a2.tar.gz
talos-obmc-uboot-9829feffec9c8c7a1d25da1dae54f0fea080f7a2.zip
powerpc/85xx: Fix compile errors if CONFIG_SYS_{BR,OR}0_PRELIM aren't set
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>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/fsl_lbc.c')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/fsl_lbc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
index 7598ebf457..d78962ff87 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
@@ -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);
OpenPOWER on IntegriCloud