diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-12 10:59:21 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-09 15:34:11 +0000 |
commit | cb5e2399f9e504dc78525988c85882643e915da4 (patch) | |
tree | 557fe14f3aafb12237ead123a95c0b510b423ba2 /arch/arm/mach-sa1100/hackkit.c | |
parent | d65b4e98d7ea3038b767b70fe8be959b2913f16d (diff) | |
download | op-kernel-dev-cb5e2399f9e504dc78525988c85882643e915da4.zip op-kernel-dev-cb5e2399f9e504dc78525988c85882643e915da4.tar.gz |
ARM: sa11x0: fix off-by-one resource sizes
Hackkit defined its flash memory resource to be 32M + 1 byte.
Jornada defined the Epson video controller resources to be one byte
larger than they should be, and mis-mapped the SA-1111 companion
chip one byte smaller than it should be.
Fix these.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/hackkit.c')
-rw-r--r-- | arch/arm/mach-sa1100/hackkit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-sa1100/hackkit.c b/arch/arm/mach-sa1100/hackkit.c index c01bb36..9092b3a 100644 --- a/arch/arm/mach-sa1100/hackkit.c +++ b/arch/arm/mach-sa1100/hackkit.c @@ -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, }; |