]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] Orion: fix orion-ehci platform resource end addresses
authorLennert Buytenhek <buytenh@wantstofly.org>
Fri, 25 Apr 2008 20:30:21 +0000 (16:30 -0400)
committerNicolas Pitre <nico@cam.org>
Mon, 28 Apr 2008 19:58:57 +0000 (15:58 -0400)
End addresses in 'struct resource' are inclusive -- fix the common
orion5x code to pass in the proper end addresses when instantiating
the two on-chip EHCI controllers.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
arch/arm/mach-orion5x/common.c

index 439c7784af02ddfbb1c7afc10755c18f8a81e0eb..c13800b8e372c5c332de7435d57705b923a96913 100644 (file)
@@ -132,7 +132,7 @@ static struct platform_device orion5x_uart = {
 static struct resource orion5x_ehci0_resources[] = {
        {
                .start  = ORION5X_USB0_PHYS_BASE,
-               .end    = ORION5X_USB0_PHYS_BASE + SZ_4K,
+               .end    = ORION5X_USB0_PHYS_BASE + SZ_4K - 1,
                .flags  = IORESOURCE_MEM,
        },
        {
@@ -145,7 +145,7 @@ static struct resource orion5x_ehci0_resources[] = {
 static struct resource orion5x_ehci1_resources[] = {
        {
                .start  = ORION5X_USB1_PHYS_BASE,
-               .end    = ORION5X_USB1_PHYS_BASE + SZ_4K,
+               .end    = ORION5X_USB1_PHYS_BASE + SZ_4K - 1,
                .flags  = IORESOURCE_MEM,
        },
        {