[U-Boot] [PATCH] powerpc/8xxx: Reduce NAND-SPL build size

Kumar Gala galak at kernel.crashing.org
Mon Mar 7 05:16:35 CET 2011


We don't use disable_law in the SPL code so only build it if
!CONFIG_NAND_SPL.

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
 drivers/misc/fsl_law.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/fsl_law.c b/drivers/misc/fsl_law.c
index 3233ff2..9b25ddc 100644
--- a/drivers/misc/fsl_law.c
+++ b/drivers/misc/fsl_law.c
@@ -79,6 +79,7 @@ void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
 	in_be32(LAWAR_ADDR(idx));
 }
 
+#ifndef CONFIG_NAND_SPL
 void disable_law(u8 idx)
 {
 	gd->used_laws &= ~(1 << idx);
@@ -92,7 +93,6 @@ void disable_law(u8 idx)
 	return;
 }
 
-#ifndef CONFIG_NAND_SPL
 static int get_law_entry(u8 i, struct law_entry *e)
 {
 	u32 lawar;
-- 
1.7.2.3



More information about the U-Boot mailing list