From: Stefan Roese Date: Tue, 23 Nov 2010 13:32:48 +0000 (+0100) Subject: ppc4xx/NAND: Reduce size of NAND SPL image X-Git-Tag: v2010.12-rc2~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c5d02825aeb39a74e4faf789bf94a8610c9a1d0f;p=u-boot ppc4xx/NAND: Reduce size of NAND SPL image This is needed for the canyonlands_nand build target. Without it the resulting image won't fit into 4k. Signed-off-by: Stefan Roese Cc: Scott Wood Acked-by: Scott Wood Acked-by: Stefan Roese --- diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 3ca13a979c..0729e0c9c0 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -201,6 +201,8 @@ int board_nand_init(struct nand_chip *nand) #ifndef CONFIG_NAND_SPL nand->write_buf = ndfc_write_buf; nand->verify_buf = ndfc_verify_buf; + + chip++; #else /* * Setup EBC (CS0 only right now) @@ -211,7 +213,5 @@ int board_nand_init(struct nand_chip *nand) mtebc(PB0AP, CONFIG_SYS_EBC_PB0AP); #endif - chip++; - return 0; }