ARM: OMAP1: ams-delta: Drop board specific global GPIO numbers
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 7 Nov 2018 20:17:44 +0000 (21:17 +0100)
committerTony Lindgren <tony@atomide.com>
Thu, 29 Nov 2018 20:04:10 +0000 (12:04 -0800)
As all users of the board specific GPIO pins have been converted from
legacy integer-based to descriptor-based interface, there is no longer
a need to maintain statically assigned GPIO pin numbers.  Drop support
for that.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c
arch/arm/mach-omap1/board-ams-delta.h

index 19e0c071d6758c37968f62c6250862bd9b8fd827..a6986a83a916cd90c329b4c02b47c3ddc6b614f7 100644 (file)
@@ -167,7 +167,6 @@ static struct omap_usb_config ams_delta_usb_config __initdata = {
        .pins[0]        = 2,
 };
 
-#define LATCH1_GPIO_BASE       232
 #define LATCH1_NGPIO           8
 
 static struct resource latch1_resources[] = {
@@ -183,7 +182,6 @@ static struct resource latch1_resources[] = {
 
 static struct bgpio_pdata latch1_pdata = {
        .label  = LATCH1_LABEL,
-       .base   = LATCH1_GPIO_BASE,
        .ngpio  = LATCH1_NGPIO,
 };
 
@@ -219,7 +217,6 @@ static struct resource latch2_resources[] = {
 
 static struct bgpio_pdata latch2_pdata = {
        .label  = LATCH2_LABEL,
-       .base   = AMS_DELTA_LATCH2_GPIO_BASE,
        .ngpio  = AMS_DELTA_LATCH2_NGPIO,
 };
 
index a74a306d7e770f8b161b2f5d2eb058a517cfeb20..06e4c64a47f8261e784e7c529616336a7c1a36a2 100644 (file)
 #define AMS_DELTA_GPIO_PIN_CONFIG      11
 #define AMS_DELTA_GPIO_PIN_NAND_RB     12
 
-#define AMS_DELTA_GPIO_PIN_LCD_VBLEN           240
-#define AMS_DELTA_GPIO_PIN_LCD_NDISP           241
-#define AMS_DELTA_GPIO_PIN_NAND_NCE            242
-#define AMS_DELTA_GPIO_PIN_NAND_NRE            243
-#define AMS_DELTA_GPIO_PIN_NAND_NWP            244
-#define AMS_DELTA_GPIO_PIN_NAND_NWE            245
-#define AMS_DELTA_GPIO_PIN_NAND_ALE            246
-#define AMS_DELTA_GPIO_PIN_NAND_CLE            247
-#define AMS_DELTA_GPIO_PIN_KEYBRD_PWR          248
-#define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT      249
-#define AMS_DELTA_GPIO_PIN_SCARD_RSTIN         250
-#define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC                251
-#define AMS_DELTA_GPIO_PIN_MODEM_NRESET                252
-#define AMS_DELTA_GPIO_PIN_MODEM_CODEC         253
-
-#define AMS_DELTA_LATCH2_GPIO_BASE     AMS_DELTA_GPIO_PIN_LCD_VBLEN
 #define AMS_DELTA_LATCH2_NGPIO         16
 
 #endif /* CONFIG_MACH_AMS_DELTA */