]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gpio: vf610: connect GPIO label to dev name
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 20 Dec 2022 09:02:47 +0000 (17:02 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:46:43 +0000 (16:46 +0100)
BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit 6f8ecb7f85f441eb7d78ba2a4df45ee8a821934e ]

Current GPIO label is fixed, so can't distinguish different GPIO
controllers through labels. Use dev name instead.

Fixes: 7f2691a19627 ("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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/gpio/gpio-vf610.c

index 9033db00c360dbb50176d7bd7a38f30247eceeb6..d3f3a69d49077ed02f4499f9a7dc674339c4f93c 100644 (file)
@@ -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;