Browse Source

[ARM] pxa/magician: fix htc-egpio resource size

Fixes an off-by-one error.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Philipp Zabel 16 years ago
parent
commit
2380461423
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/mach-pxa/magician.c

+ 1 - 1
arch/arm/mach-pxa/magician.c

@@ -204,7 +204,7 @@ static struct platform_device gpio_keys = {
 static struct resource egpio_resources[] = {
 	[0] = {
 		.start = PXA_CS3_PHYS,
-		.end   = PXA_CS3_PHYS + 0x20,
+		.end   = PXA_CS3_PHYS + 0x20 - 1,
 		.flags = IORESOURCE_MEM,
 	},
 	[1] = {