[ARM] TS-78xxx NAND resource type should be IORESOURCE_MEM
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Fri, 5 Nov 2010 17:14:40 +0000 (13:14 -0400)
committerNicolas Pitre <nico@fluxnic.net>
Fri, 5 Nov 2010 17:32:08 +0000 (13:32 -0400)
The type was IORESOURCE_IO which is not what is expected by
plat_nand_probe(). This device has not worked since 2d098a72
("mtd: plat_nand: request memory resource before doing ioremap").

Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/mach-orion5x/ts78xx-setup.c

index 696b1a97f9e2eaf5b7c88735a2f41fa17262ba97..9a5d1ef1bd1f0d520da1371f0e5588b6f3449f61 100644 (file)
@@ -239,7 +239,7 @@ static struct platform_nand_data ts78xx_ts_nand_data = {
 static struct resource ts78xx_ts_nand_resources = {
        .start          = TS_NAND_DATA,
        .end            = TS_NAND_DATA + 4,
-       .flags          = IORESOURCE_IO,
+       .flags          = IORESOURCE_MEM,
 };
 
 static struct platform_device ts78xx_ts_nand_device = {