ARM: OMAP1: ams-delta: Drop obsolete NAND resources
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 21 Nov 2018 11:08:06 +0000 (12:08 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 7 Dec 2018 09:38:28 +0000 (10:38 +0100)
Amstrad Delta NAND driver now uses GPIO API for data I/O so there is no
need to assign memory I/O resource to the device any longer.  Drop it.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
arch/arm/mach-omap1/board-ams-delta.c

index 30c0d18f372ed26f872587d9eefd13219b630ae0..d594f60c32248c4f5e82e6ec8fe5e7ca45469135 100644 (file)
@@ -296,20 +296,9 @@ struct modem_private_data {
 
 static struct modem_private_data modem_priv;
 
-static struct resource ams_delta_nand_resources[] = {
-       [0] = {
-               .start  = OMAP1_MPUIO_BASE,
-               .end    = OMAP1_MPUIO_BASE +
-                               OMAP_MPUIO_IO_CNTL + sizeof(u32) - 1,
-               .flags  = IORESOURCE_MEM,
-       },
-};
-
 static struct platform_device ams_delta_nand_device = {
        .name   = "ams-delta-nand",
        .id     = -1,
-       .num_resources  = ARRAY_SIZE(ams_delta_nand_resources),
-       .resource       = ams_delta_nand_resources,
 };
 
 #define OMAP_GPIO_LABEL                "gpio-0-15"