Commit a159c2b4 authored by Colin Foster's avatar Colin Foster Committed by Linus Walleij

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: default avatarColin Foster <colin.foster@in-advantage.com>
Tested-by: default avatarClément Léger <clement.leger@bootlin.com>
Link: https://lore.kernel.org/r/20211119195928.2498441-3-colin.foster@in-advantage.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ad96111e
...@@ -1723,7 +1723,7 @@ static int ocelot_gpiochip_register(struct platform_device *pdev, ...@@ -1723,7 +1723,7 @@ static int ocelot_gpiochip_register(struct platform_device *pdev,
gc = &info->gpio_chip; gc = &info->gpio_chip;
gc->ngpio = info->desc->npins; gc->ngpio = info->desc->npins;
gc->parent = &pdev->dev; gc->parent = &pdev->dev;
gc->base = 0; gc->base = -1;
gc->of_node = info->dev->of_node; gc->of_node = info->dev->of_node;
gc->label = "ocelot-gpio"; gc->label = "ocelot-gpio";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment