提交 a159c2b4 编写于 作者: C Colin Foster 提交者: 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: NColin Foster <colin.foster@in-advantage.com>
Tested-by: NClément Léger <clement.leger@bootlin.com>
Link: https://lore.kernel.org/r/20211119195928.2498441-3-colin.foster@in-advantage.comSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 ad96111e
......@@ -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";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册