aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-11-17 09:30:32 -0500
committerLinus Walleij <linus.walleij@linaro.org>2014-11-28 05:28:10 -0500
commitfcb8bd47027a2a8dbf6a0212ae09fc86fbe71627 (patch)
treeddcc60b2356ca1259b0c4098f6d2eb3fa93613e3 /drivers/gpio
parent86256d1fceff058d5afea6dfcc8a2eac18a71e95 (diff)
gpio: em: Use dynamic allocation of GPIOs
Use dynamic allocation of GPIOs instead of looking at the gpio%u alias in DT. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-em.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c
index 21d34d4d473d..c3434146f605 100644
--- a/drivers/gpio/gpio-em.c
+++ b/drivers/gpio/gpio-em.c
@@ -330,12 +330,7 @@ static int em_gio_probe(struct platform_device *pdev)
330 goto err0; 330 goto err0;
331 } 331 }
332 332
333 ret = of_alias_get_id(pdev->dev.of_node, "gpio"); 333 pdata->gpio_base = -1;
334 if (ret < 0) {
335 dev_err(&pdev->dev, "Couldn't get OF id\n");
336 goto err0;
337 }
338 pdata->gpio_base = ret * 32; /* 32 GPIOs per instance */
339 } 334 }
340 335
341 gpio_chip = &p->gpio_chip; 336 gpio_chip = &p->gpio_chip;