Skip to contentSkip to conversation

powerpc/85xx: Fix compile errors if CONFIG_SYS_{BR, OR}0_PRELIM aren't set

PATCH New Kumar Gala 1 participant 2 messages May 20, 2011 – May 27, 2011 PowerPC

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c +2 -0
index 7598ebf..d78962f 100644
@@ -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);
Signature · 1 line
1.7.3.4
author Applied
#1 lore raw

PATCH 1/1 powerpc/85xx: Fix compile errors if CONFIG_SYS_{BR, OR}0_PRELIM aren't set

Quoted 8 lines · Kumar Gala

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.

---
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)

applied to next

- k