]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-sa1100/hackkit.c
ARM: sa11x0: fix off-by-one resource sizes
[~andy/linux] / arch / arm / mach-sa1100 / hackkit.c
index 30f4a551b8e56027dba638c865387ca601bccc40..9092b3aff5340998e12e300a748790c2949d48bc 100644 (file)
@@ -181,7 +181,7 @@ static struct flash_platform_data hackkit_flash_data = {
 
 static struct resource hackkit_flash_resource = {
        .start          = SA1100_CS0_PHYS,
-       .end            = SA1100_CS0_PHYS + SZ_32M,
+       .end            = SA1100_CS0_PHYS + SZ_32M - 1,
        .flags          = IORESOURCE_MEM,
 };
 
@@ -200,4 +200,5 @@ MACHINE_START(HACKKIT, "HackKit Cpu Board")
        .init_irq       = sa1100_init_irq,
        .timer          = &sa1100_timer,
        .init_machine   = hackkit_init,
+       .restart        = sa11x0_restart,
 MACHINE_END