summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-ocelot.c
diff options
context:
space:
mode:
authorColin Foster <colin.foster@in-advantage.com>2021-11-19 22:59:26 +0300
committerLinus Walleij <linus.walleij@linaro.org>2021-11-22 03:07:02 +0300
commita159c2b4cb7517fe11f3ce698f792126e964fc7a (patch)
treeb1cca6402f264e4fb9b00607e510002fbb764b3f /drivers/pinctrl/pinctrl-ocelot.c
parentad96111e658a959e55894863a758e6c2cf31bb5e (diff)
downloadlinux-a159c2b4cb7517fe11f3ce698f792126e964fc7a.tar.xz
pinctrl: ocelot: update pinctrl to automatic base address
struct gpio_chip recommends passing -1 as base to gpiolib. Doing so avoids conflicts when the chip is external and gpiochip0 already exists. Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Tested-by: Clément Léger <clement.leger@bootlin.com> Link: https://lore.kernel.org/r/20211119195928.2498441-3-colin.foster@in-advantage.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-ocelot.c')
-rw-r--r--drivers/pinctrl/pinctrl-ocelot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c
index 25cb62e21e50..d59d684d3496 100644
--- a/drivers/pinctrl/pinctrl-ocelot.c
+++ b/drivers/pinctrl/pinctrl-ocelot.c
@@ -1723,7 +1723,7 @@ static int ocelot_gpiochip_register(struct platform_device *pdev,
gc = &info->gpio_chip;
gc->ngpio = info->desc->npins;
gc->parent = &pdev->dev;
- gc->base = 0;
+ gc->base = -1;
gc->of_node = info->dev->of_node;
gc->label = "ocelot-gpio";