[ARM] 3752/1: fix versatile flash resource map
authorYoav Steinberg <yoav@monfort.co.il>
Sun, 13 Aug 2006 13:17:12 +0000 (14:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 13 Aug 2006 13:17:12 +0000 (14:17 +0100)
Patch from Yoav Steinberg

Flash resource mapping for versatile machine included one extra byte for the end address. This results in failure to map other resources on physical address directly after the NOR flash.

Signed-off-by: Yoav Steinberg <yoav@monfort.co.il>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-versatile/core.c

index c4e3f8c684795800403ba2eac98dc32dd928a7f8..f2bbef07b1e408e8a82b8f85c794ff59ee4fb672 100644 (file)
@@ -285,7 +285,7 @@ static struct flash_platform_data versatile_flash_data = {
 
 static struct resource versatile_flash_resource = {
        .start                  = VERSATILE_FLASH_BASE,
-       .end                    = VERSATILE_FLASH_BASE + VERSATILE_FLASH_SIZE,
+       .end                    = VERSATILE_FLASH_BASE + VERSATILE_FLASH_SIZE - 1,
        .flags                  = IORESOURCE_MEM,
 };