]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Blackfin: cm-bf527/bf537-stamp: fix dm9000 resources
authorBarry Song <barry.song@analog.com>
Mon, 27 Jul 2009 06:42:50 +0000 (06:42 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 17 Sep 2009 02:10:10 +0000 (22:10 -0400)
The dm9000 driver expects two IORESOURCE_MEM to get at the device, so make
sure we declare things properly.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf527/boards/cm_bf527.c
arch/blackfin/mach-bf537/boards/stamp.c

index cb360e99f1dcbb17ff85922d08e8cf830bc18754..18b9bd7d7d64e1f0da16480e10a27a222c93b1a0 100644 (file)
@@ -311,10 +311,15 @@ static struct platform_device smc91x_device = {
 static struct resource dm9000_resources[] = {
        [0] = {
                .start  = 0x203FB800,
-               .end    = 0x203FB800 + 8,
+               .end    = 0x203FB800 + 1,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
+               .start  = 0x203FB804,
+               .end    = 0x203FB804 + 1,
+               .flags  = IORESOURCE_MEM,
+       },
+       [2] = {
                .start  = IRQ_PF9,
                .end    = IRQ_PF9,
                .flags  = (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE),
index 313249e6c94cb31bbf90ac96b458233a7e679dfa..9b67006ec84998a624ff2d9f9c75ad23584465b2 100644 (file)
@@ -207,10 +207,15 @@ static struct platform_device smc91x_device = {
 static struct resource dm9000_resources[] = {
        [0] = {
                .start  = 0x203FB800,
-               .end    = 0x203FB800 + 8,
+               .end    = 0x203FB800 + 1,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
+               .start  = 0x203FB804,
+               .end    = 0x203FB804 + 1,
+               .flags  = IORESOURCE_MEM,
+       },
+       [2] = {
                .start  = IRQ_PF9,
                .end    = IRQ_PF9,
                .flags  = (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE),