projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86256d1
)
gpio: em: Use dynamic allocation of GPIOs
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Mon, 17 Nov 2014 14:30:32 +0000
(15:30 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 28 Nov 2014 10:28:10 +0000
(11:28 +0100)
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>
drivers/gpio/gpio-em.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-em.c
b/drivers/gpio/gpio-em.c
index 21d34d4d473dcefe1654fb4cf0b240d83d405440..c3434146f605748bb59d372312c3eeb7efa4682f 100644
(file)
--- 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)
goto err0;
}
- ret = of_alias_get_id(pdev->dev.of_node, "gpio");
- if (ret < 0) {
- dev_err(&pdev->dev, "Couldn't get OF id\n");
- goto err0;
- }
- pdata->gpio_base = ret * 32; /* 32 GPIOs per instance */
+ pdata->gpio_base = -1;
}
gpio_chip = &p->gpio_chip;