mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
gpio: vf610: connect GPIO label to dev name
[ Upstream commit6f8ecb7f85
] Current GPIO label is fixed, so can't distinguish different GPIO controllers through labels. Use dev name instead. Fixes:7f2691a196
("gpio: vf610: add gpiolib/IRQ chip driver for Vybrid") Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1a23b5130d
commit
ffc045aa00
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
|
|||
|
||||
gc = &port->gc;
|
||||
gc->parent = dev;
|
||||
gc->label = "vf610-gpio";
|
||||
gc->label = dev_name(dev);
|
||||
gc->ngpio = VF610_GPIO_PER_PORT;
|
||||
gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT;
|
||||
|
||||
|
|
Loading…
Reference in a new issue