]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[ARM] pxa/magician: fix htc-egpio resource size
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 9 Feb 2009 16:34:05 +0000 (17:34 +0100)
committerEric Miao <eric.miao@marvell.com>
Mon, 9 Mar 2009 13:22:33 +0000 (21:22 +0800)
Fixes an off-by-one error.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/magician.c

index af464870c129b4d77010ef7511331cc3e746e691..7fd31235c26e131efb3a4629aebc8b4c0e853938 100644 (file)
@@ -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] = {