[PATCH] PowerPC 44x: Adjust warp-nand resource end address

Valentine Barshak vbarshak at ru.mvista.com
Thu Jul 10 04:02:34 EST 2008


Adjust the NDFC resource end value (resource size = end - start + 1).

Signed-off-by: Valentine Barshak <vbarshak at ru.mvista.com>
---
 arch/powerpc/platforms/44x/warp-nand.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- a/arch/powerpc/platforms/44x/warp-nand.c	2008-07-01 20:39:07.000000000 +0400
+++ b/arch/powerpc/platforms/44x/warp-nand.c	2008-07-09 20:22:31.000000000 +0400
@@ -24,7 +24,7 @@
 
 static struct resource warp_ndfc = {
 	.start = WARP_NAND_FLASH_REG_ADDR,
-	.end   = WARP_NAND_FLASH_REG_ADDR + WARP_NAND_FLASH_REG_SIZE,
+	.end   = WARP_NAND_FLASH_REG_ADDR + WARP_NAND_FLASH_REG_SIZE - 1,
 	.flags = IORESOURCE_MEM,
 };
 



More information about the Linuxppc-dev mailing list