mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
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>
This commit is contained in:
parent
ad96111e65
commit
a159c2b4cb
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue