summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/meson/pinctrl-meson.c
diff options
context:
space:
mode:
authorCarlo Caione <carlo@endlessm.com>2015-05-17 17:57:38 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-05-19 11:40:52 +0200
commit984cffdeaeb7ea5a21f49a89f638d84d62d08992 (patch)
tree1251eeeeed538d8ba92b9f2788be9fdf817f40b5 /drivers/pinctrl/meson/pinctrl-meson.c
parent75e9143927a893aebad18b79e1bbeff4892c0d35 (diff)
downloadblackbird-op-linux-984cffdeaeb7ea5a21f49a89f638d84d62d08992.tar.gz
blackbird-op-linux-984cffdeaeb7ea5a21f49a89f638d84d62d08992.zip
pinctrl: Fix gpio/pin mapping for Meson8b
The num_pins field in the struct meson_domain_data must include also the missing pins in the Meson8b SoC, otherwise the GPIO <-> pin mapping is broken on this platform. Avoid also the dinamic allocation for GPIOs. Signed-off-by: Carlo Caione <carlo@endlessm.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/meson/pinctrl-meson.c')
-rw-r--r--drivers/pinctrl/meson/pinctrl-meson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c
index edcd140e0899..a70a5fe79d44 100644
--- a/drivers/pinctrl/meson/pinctrl-meson.c
+++ b/drivers/pinctrl/meson/pinctrl-meson.c
@@ -569,7 +569,7 @@ static int meson_gpiolib_register(struct meson_pinctrl *pc)
domain->chip.direction_output = meson_gpio_direction_output;
domain->chip.get = meson_gpio_get;
domain->chip.set = meson_gpio_set;
- domain->chip.base = -1;
+ domain->chip.base = domain->data->pin_base;
domain->chip.ngpio = domain->data->num_pins;
domain->chip.can_sleep = false;
domain->chip.of_node = domain->of_node;
OpenPOWER on IntegriCloud