diff options
author | Janusz Krzysztofik <jmkrzyszt@gmail.com> | 2018-09-10 15:50:08 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-09-20 17:24:42 -0400 |
commit | 1137ceee76ba8b8c698e11b7150e35524f071bda (patch) | |
tree | 806e43144e4be2bd0d8be288d8c8f6d906ecde19 | |
parent | 26683316c92ab2d1b330a3a38548328c9b136ad1 (diff) |
ARM: OMAP1: ams-delta: Don't request unused GPIOs
GPIOs with no kernel drivers can still be used from user space, don't
request them from the board file.
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 647512ef095c..318925ae3ebe 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -250,39 +250,6 @@ static struct platform_device latch2_gpio_device = { | |||
250 | #define LATCH2_PIN_HOOKFLASH1 14 | 250 | #define LATCH2_PIN_HOOKFLASH1 14 |
251 | #define LATCH2_PIN_HOOKFLASH2 15 | 251 | #define LATCH2_PIN_HOOKFLASH2 15 |
252 | 252 | ||
253 | static const struct gpio latch_gpios[] __initconst = { | ||
254 | { | ||
255 | .gpio = LATCH1_GPIO_BASE + 6, | ||
256 | .flags = GPIOF_OUT_INIT_LOW, | ||
257 | .label = "dockit1", | ||
258 | }, | ||
259 | { | ||
260 | .gpio = LATCH1_GPIO_BASE + 7, | ||
261 | .flags = GPIOF_OUT_INIT_LOW, | ||
262 | .label = "dockit2", | ||
263 | }, | ||
264 | { | ||
265 | .gpio = AMS_DELTA_GPIO_PIN_SCARD_RSTIN, | ||
266 | .flags = GPIOF_OUT_INIT_LOW, | ||
267 | .label = "scard_rstin", | ||
268 | }, | ||
269 | { | ||
270 | .gpio = AMS_DELTA_GPIO_PIN_SCARD_CMDVCC, | ||
271 | .flags = GPIOF_OUT_INIT_LOW, | ||
272 | .label = "scard_cmdvcc", | ||
273 | }, | ||
274 | { | ||
275 | .gpio = AMS_DELTA_LATCH2_GPIO_BASE + 14, | ||
276 | .flags = GPIOF_OUT_INIT_LOW, | ||
277 | .label = "hookflash1", | ||
278 | }, | ||
279 | { | ||
280 | .gpio = AMS_DELTA_LATCH2_GPIO_BASE + 15, | ||
281 | .flags = GPIOF_OUT_INIT_LOW, | ||
282 | .label = "hookflash2", | ||
283 | }, | ||
284 | }; | ||
285 | |||
286 | static struct regulator_consumer_supply modem_nreset_consumers[] = { | 253 | static struct regulator_consumer_supply modem_nreset_consumers[] = { |
287 | REGULATOR_SUPPLY("RESET#", "serial8250.1"), | 254 | REGULATOR_SUPPLY("RESET#", "serial8250.1"), |
288 | REGULATOR_SUPPLY("POR", "cx20442-codec"), | 255 | REGULATOR_SUPPLY("POR", "cx20442-codec"), |
@@ -862,7 +829,6 @@ static void __init ams_delta_led_init(struct gpio_chip *chip) | |||
862 | static int __init ams_delta_gpio_init(void) | 829 | static int __init ams_delta_gpio_init(void) |
863 | { | 830 | { |
864 | struct gpio_chip *chip; | 831 | struct gpio_chip *chip; |
865 | int err; | ||
866 | 832 | ||
867 | if (!machine_is_ams_delta()) | 833 | if (!machine_is_ams_delta()) |
868 | return -ENODEV; | 834 | return -ENODEV; |
@@ -873,11 +839,7 @@ static int __init ams_delta_gpio_init(void) | |||
873 | else | 839 | else |
874 | ams_delta_led_init(chip); | 840 | ams_delta_led_init(chip); |
875 | 841 | ||
876 | err = gpio_request_array(latch_gpios, ARRAY_SIZE(latch_gpios)); | 842 | return 0; |
877 | if (err) | ||
878 | pr_err("Couldn't take over latch1/latch2 GPIO pins\n"); | ||
879 | |||
880 | return err; | ||
881 | } | 843 | } |
882 | device_initcall_sync(ams_delta_gpio_init); | 844 | device_initcall_sync(ams_delta_gpio_init); |
883 | 845 | ||