]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: qcom: lpass-lpi: Remove duplicate assignment of of_gpio_n_cells
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jan 2026 18:23:59 +0000 (13:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:18 +0000 (13:10 +0100)
[ Upstream commit a3fc976a2d68cb74ae4234314002e4e398e4c337 ]

The of_gpio_n_cells default is 2 when ->of_xlate() callback is
not defined. No need to assign it explicitly in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230112184923.80442-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Stable-dep-of: ebc18e9854e5 ("pinctrl: qcom: lpass-lpi: mark the GPIO controller as sleeping")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c

index ec37ad43a6364a2b387212456682f00e113c73e7..61c7f230d071e38fa1e72fdd146990d8f18437c7 100644 (file)
@@ -644,7 +644,6 @@ static int lpi_pinctrl_probe(struct platform_device *pdev)
        pctrl->chip.base = -1;
        pctrl->chip.ngpio = data->npins;
        pctrl->chip.label = dev_name(dev);
-       pctrl->chip.of_gpio_n_cells = 2;
        pctrl->chip.can_sleep = false;
 
        mutex_init(&pctrl->lock);